Skip to content

Commit

Permalink
Fix AdvancedSimulate setting being forced off at startup (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Klocman authored Aug 21, 2024
1 parent 0e32891 commit 5e2917a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/BulkCrapUninstaller/Forms/Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ public MainWindow()
toolStripLabelStatus_TextChanged(this, EventArgs.Empty);

// Debug stuff
debugToolStripMenuItem.Enabled = Program.EnableDebug;
debugToolStripMenuItem.Visible = Program.EnableDebug;
_setMan.Selected.Settings.AdvancedSimulate = Program.EnableDebug;
var isDebug = Program.EnableDebug;
debugToolStripMenuItem.Enabled = isDebug;
debugToolStripMenuItem.Visible = isDebug;
if (isDebug)
_setMan.Selected.Settings.AdvancedSimulate = true;

// Tracking
UsageManager.DataSender = new DatabaseStatSender(Settings.Default.MiscUserId);
Expand Down Expand Up @@ -204,9 +206,9 @@ protected override void OnDpiChanged(DpiChangedEventArgs e)
{
var scaleChange = e.DeviceDpiNew / (double)e.DeviceDpiOld;

if (toolStripLabelSize != null)
if (toolStripLabelSize != null)
toolStripLabelSize.Width = (int)Math.Round(toolStripLabelSize.Width * scaleChange);
if (toolStripLabelTotal != null)
if (toolStripLabelTotal != null)
toolStripLabelTotal.Width = (int)Math.Round(toolStripLabelTotal.Width * scaleChange);
}
catch (SystemException exception)
Expand Down

0 comments on commit 5e2917a

Please sign in to comment.