mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Only instanciate if needed.
This commit is contained in:
@@ -474,10 +474,10 @@ namespace GHelper
|
||||
private void checkAutoToggleClamshellMode_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("toggle_clamshell_mode", checkAutoToggleClamshellMode.Checked ? 1 : 0);
|
||||
ClamshellModeControl ctrl = new ClamshellModeControl();
|
||||
|
||||
if (checkAutoToggleClamshellMode.Checked)
|
||||
{
|
||||
ClamshellModeControl ctrl = new ClamshellModeControl();
|
||||
ctrl.ToggleLidAction();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user