From 2be0106211cb4ce30036fc0c8e84ae70dff68c87 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Thu, 8 Oct 2020 02:07:56 -0400 Subject: add toggle button + save gui settings on close remove option to disable write on startup --- grapher/Layouts/DefaultLayout.cs | 1 - grapher/Layouts/LayoutBase.cs | 4 ---- grapher/Layouts/OffLayout.cs | 1 - 3 files changed, 6 deletions(-) (limited to 'grapher/Layouts') diff --git a/grapher/Layouts/DefaultLayout.cs b/grapher/Layouts/DefaultLayout.cs index c8cce6d..c2f7fd7 100644 --- a/grapher/Layouts/DefaultLayout.cs +++ b/grapher/Layouts/DefaultLayout.cs @@ -9,7 +9,6 @@ namespace grapher.Layouts { Name = "Default"; Index = (int)AccelMode.noaccel; - ButtonEnabled = false; LogarithmicCharts = false; AccelLayout = new OptionLayout(true, Acceleration); diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs index c380397..7ed08ef 100644 --- a/grapher/Layouts/LayoutBase.cs +++ b/grapher/Layouts/LayoutBase.cs @@ -26,7 +26,6 @@ namespace grapher.Layouts ExponentLayout = new OptionLayout(false, string.Empty); MidpointLayout = new OptionLayout(false, string.Empty); - ButtonEnabled = true; LogarithmicCharts = false; } @@ -40,8 +39,6 @@ namespace grapher.Layouts public bool LogarithmicCharts { get; protected set; } - protected bool ButtonEnabled { get; set; } - protected OptionLayout AccelLayout { get; set; } protected OptionLayout ScaleLayout { get; set; } @@ -70,7 +67,6 @@ namespace grapher.Layouts Button button, int top) { - button.Enabled = ButtonEnabled; IOption previous = null; diff --git a/grapher/Layouts/OffLayout.cs b/grapher/Layouts/OffLayout.cs index 664e364..0b54cbb 100644 --- a/grapher/Layouts/OffLayout.cs +++ b/grapher/Layouts/OffLayout.cs @@ -9,7 +9,6 @@ namespace grapher.Layouts { Name = "Off"; Index = (int)AccelMode.noaccel; - ButtonEnabled = true; LogarithmicCharts = false; AccelLayout = new OptionLayout(false, string.Empty); -- cgit v1.2.3