activate Start in full screen mode

This commit is contained in:
Kvarkas
2021-06-24 23:03:32 +01:00
parent 0e009a2762
commit 3c10bb2669
3 changed files with 22 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages
this.chkStartMinimized.TabIndex = 3;
this.chkStartMinimized.Text = "Start minimized";
this.chkStartMinimized.UseVisualStyleBackColor = true;
this.chkStartMinimized.CheckedChanged += new System.EventHandler(this.chkStartMinimized_CheckedChanged);
//
// chkStartFullScreen
//
@@ -112,6 +113,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages
this.chkStartFullScreen.TabIndex = 4;
this.chkStartFullScreen.Text = "Start Full Screen";
this.chkStartFullScreen.UseVisualStyleBackColor = true;
this.chkStartFullScreen.CheckedChanged += new System.EventHandler(this.chkStartFullScreen_CheckedChanged);
//
// StartupExitPage
//

View File

@@ -50,5 +50,21 @@ namespace mRemoteNG.UI.Forms.OptionsPages
chkStartFullScreen.Checked = Settings.Default.StartFullScreen;
;
}
private void chkStartFullScreen_CheckedChanged(object sender, EventArgs e)
{
if (chkStartFullScreen.Checked && chkStartMinimized.Checked)
{
chkStartMinimized.Checked = false;
}
}
private void chkStartMinimized_CheckedChanged(object sender, EventArgs e)
{
if (chkStartMinimized.Checked && chkStartFullScreen.Checked)
{
chkStartFullScreen.Checked = false;
}
}
}
}

View File

@@ -241,6 +241,10 @@ namespace mRemoteNG.UI.Forms
if (Settings.Default.MinimizeToTray)
ShowInTaskbar = false;
}
if (Settings.Default.StartFullScreen)
{
Fullscreen.Value = true;
}
if (!Settings.Default.CreateEmptyPanelOnStartUp) return;
var panelName = !string.IsNullOrEmpty(Settings.Default.StartUpPanelName)