GUI: Save the keymap when saving the rest of the config
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Aug 2016 12:12:42 -0700
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
src/feature/gui/gui-config.c
→
src/feature/gui/gui-config.c
@@ -114,6 +114,13 @@ continue;
} mCoreConfigSetUIntValue(&runner->config, item->data, item->state); } + if (runner->keySources) { + size_t i; + for (i = 0; runner->keySources[i].id; ++i) { + mInputMapSave(&runner->core->inputMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config)); + mInputMapSave(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config)); + } + } mCoreConfigSave(&runner->config); mCoreLoadForeignConfig(runner->core, &runner->config); break;