fixed other bug

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2017-12-12 09:00:37 -06:00
parent c300c066aa
commit 51b97c390d
2 changed files with 3 additions and 4 deletions

View File

@ -30,17 +30,16 @@ namespace SingsALot
public MainWindow()
{
InitializeComponent();
this.settings = new UserSettings();
// if default settings exist
if (File.Exists(_UserSettingsPath))
{
this.settings = new UserSettings();
this.settings = settings.Read(_UserSettingsPath);
songsLocation.Text = this.settings.songsLocationPath;
controllerName.Text = this.settings.controllerName;
loading = false;
CheckVariables();
}
loading = false;
}
public UserSettings settings { get; private set; }

View File

@ -13,6 +13,7 @@
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
@ -27,7 +28,6 @@
<PublisherName>Team Herse</PublisherName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>