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:
parent
1cec6918a0
commit
2c7b94d17f
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user