# HG changeset patch # User sl # Date 1421604089 -3600 # Node ID f3322473db4057f172f9a7fd53fd7a100ff8196c # Parent a4a02cc952a0c557d9a601ff49d8df414c211126 Clear the screen on startup if not in debug mode. diff -r a4a02cc952a0 -r f3322473db40 Server/MainForm.cs --- a/Server/MainForm.cs Sun Jan 18 18:32:32 2015 +0100 +++ b/Server/MainForm.cs Sun Jan 18 19:01:29 2015 +0100 @@ -38,7 +38,6 @@ /// public partial class MainForm : Form { - DateTime LastTickTime; Display iDisplay; System.Drawing.Bitmap iBmp; @@ -114,10 +113,6 @@ OpenDisplayConnection(); } - //Check if "run on Windows startup" is enabled - checkBoxAutoStart.Checked=iStartupManager.Startup; - - //Setup notification icon SetupTrayIcon(); @@ -126,6 +121,13 @@ { Visible = false; } + +#if !DEBUG + //When not debugging we want the screen to be empty until a client takes over + tableLayoutPanel.Controls.Clear(); + tableLayoutPanel.RowStyles.Clear(); + tableLayoutPanel.ColumnStyles.Clear(); +#endif } /// @@ -615,6 +617,9 @@ } CheckFontHeight(); + //Check if "run on Windows startup" is enabled + checkBoxAutoStart.Checked = iStartupManager.Startup; + // checkBoxConnectOnStartup.Checked = Properties.Settings.Default.DisplayConnectOnStartup; checkBoxMinimizeToTray.Checked = Properties.Settings.Default.MinimizeToTray; checkBoxStartMinimized.Checked = Properties.Settings.Default.StartMinimized; diff -r a4a02cc952a0 -r f3322473db40 Server/SharpDisplayManager.csproj --- a/Server/SharpDisplayManager.csproj Sun Jan 18 18:32:32 2015 +0100 +++ b/Server/SharpDisplayManager.csproj Sun Jan 18 19:01:29 2015 +0100 @@ -31,7 +31,7 @@ true index.htm false - 22 + 23 0.1.0.%2a false true