Fixed: Save landmarks immediately on change
--HG-- branch : develop
This commit is contained in:
parent
2f0a831d52
commit
ab7ad10796
2 changed files with 3 additions and 1 deletions
|
@ -2739,6 +2739,7 @@ void CGroupMap::removeUserLandMark(CCtrlButton *button)
|
|||
updateUserLandMarks();
|
||||
}
|
||||
|
||||
CInterfaceManager::getInstance()->saveLandmarks();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2758,6 +2759,8 @@ void CGroupMap::updateUserLandMark(CCtrlButton *button, const ucstring &newTitle
|
|||
|
||||
updateLandMarkButton(_UserLM[k], getUserLandMarkOptions(k));
|
||||
button->setDefaultContextHelp(newTitle);
|
||||
|
||||
CInterfaceManager::getInstance()->saveLandmarks();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3096,7 +3096,6 @@ class CAHSaveUI : public IActionHandler
|
|||
{
|
||||
CInterfaceManager::getInstance()->saveKeys(true);
|
||||
CInterfaceManager::getInstance()->saveConfig(true);
|
||||
CInterfaceManager::getInstance()->saveLandmarks(true);
|
||||
}
|
||||
};
|
||||
REGISTER_ACTION_HANDLER (CAHSaveUI, "save_ui");
|
||||
|
|
Loading…
Reference in a new issue