mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 00:13:03 +00:00
GUI: fix Ctrl binds going away
This commit is contained in:
parent
ff0297bcba
commit
b0bf13df94
1 changed files with 2 additions and 2 deletions
|
@ -4896,12 +4896,12 @@ void FurnaceGUI::readConfig(DivConfig& conf, FurnaceGUISettingGroups groups) {
|
|||
if (guiActions[i].isNotABind()) continue;
|
||||
|
||||
// use { -1 } as a fallback to let us know there was an issue
|
||||
actionKeys[i]=conf.getIntList(String("keybind_GUI_ACTION_")+String(guiActions[i].name),{ -1 });
|
||||
actionKeys[i]=conf.getIntList(String("keybind_GUI_ACTION_")+String(guiActions[i].name),{-1});
|
||||
if (actionKeys[i].size()==1 && actionKeys[i][0]==-1) {
|
||||
actionKeys[i]=guiActions[i].defaultBind;
|
||||
} else {
|
||||
for (size_t j=0; j<actionKeys[i].size(); j++) {
|
||||
if (actionKeys[i][j]<=0) {
|
||||
if (actionKeys[i][j]==-1) {
|
||||
actionKeys[i].erase(actionKeys[i].begin()+j);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue