1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Save settings when changed

This commit is contained in:
KillzXGaming 2019-05-05 12:34:35 -04:00
parent b6da2b236d
commit 59ab2acfd1
4 changed files with 10 additions and 1 deletions

Binary file not shown.

View File

@ -785,7 +785,7 @@ namespace Switch_Toolbox.Library.Forms
private void displayVerticalToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
{
SetOrientation();
Config.Save();
SaveSettings();
}
private void SetOrientation()
@ -1083,6 +1083,7 @@ namespace Switch_Toolbox.Library.Forms
Runtime.ImageEditor.UseComponetSelector = useComponentSelectorToolStripMenuItem.Checked;
UpdateMipDisplay();
SaveSettings();
}
private void UpdateAlphaEnable()
@ -1096,6 +1097,8 @@ namespace Switch_Toolbox.Library.Forms
Runtime.ImageEditor.DisplayAlpha = displayAlphaToolStripMenuItem.Checked;
UpdateMipDisplay();
SaveSettings();
}
private void SetAlphaEnableUI(bool UseAlpha)
@ -1137,6 +1140,12 @@ namespace Switch_Toolbox.Library.Forms
pictureBoxCustom1.AllowClickZoom = false;
pictureBoxCustom1.SizeMode = Cyotek.Windows.Forms.ImageBoxSizeMode.Fit;
}
SaveSettings();
}
private void SaveSettings()
{
Config.Save();
}
}
}