Skip to content

Commit

Permalink
use DefaultConfiuguration instead old Configuration (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deliay committed Jun 22, 2018
1 parent de6631d commit 7ff2042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DefaultGUI/frmDefault.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ private void txtLiveID_TextChanged(object sender, EventArgs e)

private void cbSources_SelectedIndexChanged(object sender, EventArgs e)
{
if ((cbSources.SelectedItem as SourceBase).Name == Configuration.Instance.Source) return;
Configuration.Instance.Source = (cbSources.SelectedItem as SourceBase).Name;
if ((cbSources.SelectedItem as SourceBase).Name == DefaultConfiguration.Instance.Source) return;
DefaultConfiguration.Instance.Source = (cbSources.SelectedItem as SourceBase).Name;
if(MessageBox.Show(this, Language.UI_INFO_RESTART_REQ, "Restart", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
DefaultGUI.hoster.Commands.invokeCmdString("restart");
Expand Down

0 comments on commit 7ff2042

Please sign in to comment.