Skip to content

Commit

Permalink
Functionality modified to carry over settings from previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
yt3trees committed Nov 18, 2023
1 parent 9d2c751 commit 8eb08b6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
6 changes: 6 additions & 0 deletions msbuild-gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public class List
public MainWindow()
{
InitializeComponent();
if (Properties.Settings.Default.UpgradeRequired == false)
{
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.UpgradeRequired = true;
Properties.Settings.Default.Save();
}
ProgressBar.Visibility = Visibility.Hidden;
ToastNotificationManagerCompat.OnActivated += this.ToastNotificationManagerCompat_OnActivated;
}
Expand Down
14 changes: 13 additions & 1 deletion msbuild-gui/Properties/Settings.Designer.cs

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

13 changes: 8 additions & 5 deletions msbuild-gui/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
</SettingsFile>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="msbuild_gui.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="UpgradeRequired" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit 8eb08b6

Please sign in to comment.