Fixed: Save landmarks immediately on change

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-03-01 00:22:43 +02:00
parent 2f0a831d52
commit ab7ad10796
2 changed files with 3 additions and 1 deletions

View file

@ -2739,6 +2739,7 @@ void CGroupMap::removeUserLandMark(CCtrlButton *button)
updateUserLandMarks(); updateUserLandMarks();
} }
CInterfaceManager::getInstance()->saveLandmarks();
return; return;
} }
} }
@ -2758,6 +2759,8 @@ void CGroupMap::updateUserLandMark(CCtrlButton *button, const ucstring &newTitle
updateLandMarkButton(_UserLM[k], getUserLandMarkOptions(k)); updateLandMarkButton(_UserLM[k], getUserLandMarkOptions(k));
button->setDefaultContextHelp(newTitle); button->setDefaultContextHelp(newTitle);
CInterfaceManager::getInstance()->saveLandmarks();
return; return;
} }
} }

View file

@ -3096,7 +3096,6 @@ class CAHSaveUI : public IActionHandler
{ {
CInterfaceManager::getInstance()->saveKeys(true); CInterfaceManager::getInstance()->saveKeys(true);
CInterfaceManager::getInstance()->saveConfig(true); CInterfaceManager::getInstance()->saveConfig(true);
CInterfaceManager::getInstance()->saveLandmarks(true);
} }
}; };
REGISTER_ACTION_HANDLER (CAHSaveUI, "save_ui"); REGISTER_ACTION_HANDLER (CAHSaveUI, "save_ui");