Skip to content

Commit

Permalink
Add adb settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Mayer committed May 10, 2024
1 parent e285edf commit 7ea3758
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 83 deletions.
109 changes: 77 additions & 32 deletions MacroDeck/GUI/MainWindowViews/SettingsView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions MacroDeck/GUI/MainWindowViews/SettingsView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@ private void LoadNetworkConfiguration()
checkEnableSsl.Checked = MacroDeck.Configuration.EnableSsl;
certificatePath.Text = MacroDeck.Configuration.SslCertificatePath;
certificatePassword.Text = MacroDeck.Configuration.SslCertificatePassword;
checkEnableAdb.Checked = MacroDeck.Configuration.EnableAdbServer;
checkAutoStartUsb.Checked = MacroDeck.Configuration.EnableAdbAutoStartApp;
checkEnableAdb.CheckedChanged += CheckEnableAdb_CheckedChanged;
checkAutoStartUsb.CheckedChanged += CheckAutoStartUsb_CheckedChanged;
}

private void CheckAutoStartUsb_CheckedChanged(object? sender, EventArgs e)
{
MacroDeck.Configuration.EnableAdbAutoStartApp = checkAutoStartUsb.Checked;
MacroDeck.Configuration.Save(ApplicationPaths.MainConfigFilePath);
}

private void CheckEnableAdb_CheckedChanged(object? sender, EventArgs e)
{
MacroDeck.Configuration.EnableAdbServer = checkEnableAdb.Checked;
MacroDeck.Configuration.Save(ApplicationPaths.MainConfigFilePath);
}

private void LoadAutoStart()
Expand Down
Loading

0 comments on commit 7ea3758

Please sign in to comment.