Fix weird setting & select new host disabling after closing OSC layout tool

This commit is contained in:
True Zhuanjia
2024-06-29 20:21:45 +08:00
parent 93f1a2b4fb
commit 9d57c22757
@@ -875,6 +875,8 @@ static NSMutableSet* hostList;
// If we moved back to the center position, we should save the settings
if (position == FrontViewPositionLeft) {
[(SettingsViewController*)[revealController rearViewController] saveSettings];
_settingsButton.enabled = YES; // make sure these 2 buttons are enabled after closing setting view.
_upButton.enabled = YES; // here is the select new host button
}
currentPosition = position;