1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Remove unused map swipe option

This commit is contained in:
Ivan Savenko 2023-05-30 19:55:36 +03:00
parent 1cec6918a0
commit 2c7b94d17f
2 changed files with 1 additions and 24 deletions

View File

@ -102,14 +102,7 @@ AdventureOptionsTab::AdventureOptionsTab()
{
return setBoolSetting("gameTweaks", "showGrid", value);
});
addCallback("mapSwipeChanged", [](bool value)
{
#if defined(VCMI_MOBILE)
return setBoolSetting("general", "swipe", value);
#else
return setBoolSetting("general", "swipeDesktop", value);
#endif
});
addCallback("infoBarPickChanged", [](bool value)
{
return setBoolSetting("gameTweaks", "infoBarPick", value);
@ -140,12 +133,6 @@ AdventureOptionsTab::AdventureOptionsTab()
std::shared_ptr<CToggleButton> showGridCheckbox = widget<CToggleButton>("showGridCheckbox");
showGridCheckbox->setSelected(settings["gameTweaks"]["showGrid"].Bool());
std::shared_ptr<CToggleButton> mapSwipeCheckbox = widget<CToggleButton>("mapSwipeCheckbox");
#if defined(VCMI_MOBILE)
mapSwipeCheckbox->setSelected(settings["general"]["swipe"].Bool());
#else
mapSwipeCheckbox->setSelected(settings["general"]["swipeDesktop"].Bool());
#endif
std::shared_ptr<CToggleButton> infoBarPickCheckbox = widget<CToggleButton>("infoBarPickCheckbox");
infoBarPickCheckbox->setSelected(settings["gameTweaks"]["infoBarPick"].Bool());
}

View File

@ -23,8 +23,6 @@
"sound",
"language",
"gameDataLanguage",
"swipe",
"swipeDesktop",
"saveRandomMaps",
"saveFrequency",
"notifications",
@ -46,14 +44,6 @@
"type" : "number",
"default" : 88
},
"swipe" : {
"type" : "boolean",
"default" : true
},
"swipeDesktop" : {
"type" : "boolean",
"default" : false
},
"saveRandomMaps" : {
"type" : "boolean",
"default" : false