mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 16:12:18 -05:00
fixed some issues
This commit is contained in:
1 parent
fc134b146a
commit
fa63d8dc4f
11 files changed
+160
-43
No files matched your search
@@ -52,6 +52,7 @@ namespace ColorControl
|
||||
private StartUpParams StartUpParams { get; }
|
||||
|
||||
private AmdService _amdService;
|
||||
private bool _skipResize;
|
||||
|
||||
public MainForm(AppContext appContext)
|
||||
{
|
||||
@@ -541,6 +542,11 @@ namespace ColorControl
|
||||
|
||||
private void MainForm_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (_skipResize)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (WindowState == FormWindowState.Minimized)
|
||||
{
|
||||
if (_config.MinimizeToTray)
|
||||
@@ -578,8 +584,16 @@ namespace ColorControl
|
||||
Utils.RegisterShortcut(Handle, SHORTCUTID_SCREENSAVER, _config.ScreenSaverShortcut);
|
||||
}
|
||||
|
||||
Width = _config.FormWidth;
|
||||
Height = _config.FormHeight;
|
||||
_skipResize = true;
|
||||
try
|
||||
{
|
||||
Width = _config.FormWidth;
|
||||
Height = _config.FormHeight;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_skipResize = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveConfig()
|
||||
|
||||
Reference in new issue
Block a user