Skip to content

Commit 6f48adc

Browse files
Merge pull request #45 from freshprogrammer/bugfix
Fix error if loading/saving hotkey prefferences
2 parents b05fa68 + aac95f2 commit 6f48adc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

FreshTools/code/FreshTools.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ public void LoadConfig()
137137

138138
//load variables
139139
bool snapHotKeysEnabled = WindowManager.SnapHotKeysEnabled;
140-
WindowManager.SnapHotKeysEnabled = vars.GetVariable("SnapWindowHoyKeysEnabled", ref snapHotKeysEnabled, true).Boolean;
140+
WindowManager.SnapHotKeysEnabled = vars.GetVariable("SnapWindowHotKeysEnabled", ref snapHotKeysEnabled, true).Boolean;
141141
bool snapAltHotKeysEnabled = WindowManager.SnapAltHotKeysEnabled;
142-
WindowManager.SnapHotKeysEnabled = vars.GetVariable("SnapAltWindowHoyKeysEnabled", ref snapAltHotKeysEnabled, true).Boolean;
142+
WindowManager.SnapAltHotKeysEnabled = vars.GetVariable("SnapAltWindowHotKeysEnabled", ref snapAltHotKeysEnabled, true).Boolean;
143143
bool miscHotKeysEnabled = WindowManager.MiscHotKeysEnabled;
144-
WindowManager.SnapHotKeysEnabled = vars.GetVariable("MiscWindowHoyKeysEnabled", ref miscHotKeysEnabled, true).Boolean;
144+
WindowManager.MiscHotKeysEnabled = vars.GetVariable("MiscWindowHotKeysEnabled", ref miscHotKeysEnabled, true).Boolean;
145145
WindowManager.LoadSnapSizes(settingsFile);
146146

147147
Log.I("Finisihed loading config");
@@ -152,9 +152,9 @@ public void LoadConfig()
152152
/// </summary>
153153
private void SaveVariables()
154154
{
155-
settingsFile.variables.SetValue("SnapWindowHoyKeysEnabled", "" + WindowManager.SnapHotKeysEnabled);
156-
settingsFile.variables.SetValue("SnapAltWindowHoyKeysEnabled", "" + WindowManager.SnapAltHotKeysEnabled);
157-
settingsFile.variables.SetValue("MiscWindowHoyKeysEnabled", "" + WindowManager.MiscHotKeysEnabled);
155+
settingsFile.variables.SetValue("SnapWindowHotKeysEnabled", "" + WindowManager.SnapHotKeysEnabled);
156+
settingsFile.variables.SetValue("SnapAltWindowHotKeysEnabled", "" + WindowManager.SnapAltHotKeysEnabled);
157+
settingsFile.variables.SetValue("MiscWindowHotKeysEnabled", "" + WindowManager.MiscHotKeysEnabled);
158158

159159
WindowManager.SaveSnapSizes(settingsFile);
160160
settingsFile.SaveAs(configFilePath);

0 commit comments

Comments
 (0)