Button config menu should save config to disk whenever changes are accepted. #85

Merged
Daverball merged 2 commits from save-button-config into master 2014-12-31 13:13:53 +00:00
2 changed files with 3 additions and 5 deletions

View File

@ -321,11 +321,6 @@ int main(int argc, char *argv[])
/* Clean up any remainin events */
eventThread.cleanup();
/* Store key bindings */
BDescVec keyBinds;
rtData.bindingUpdateMsg.get(keyBinds);
storeBindings(keyBinds, rtData.config);
Debug() << "Shutting down.";
SDL_DestroyWindow(win);

View File

@ -678,6 +678,9 @@ struct SettingsMenuPrivate
rtData.bindingUpdateMsg.post(binds);
/* Store the key bindings to disk as well to prevent config loss */
storeBindings(binds, rtData.config);
destroyReq = true;
}