(FJSYS): changed password query.

This commit is contained in:
morkt
2018-02-03 19:53:41 +04:00
parent 0257244a73
commit 73db11a6bc
3 changed files with 10 additions and 13 deletions

View File

@@ -17,16 +17,6 @@ namespace GameRes.Formats.GUI
InitializeComponent ();
var first = new Dictionary<string, string> { { arcStrings.ArcNoEncryption, "" } };
Title.ItemsSource = first.Concat (FjsysOpener.KnownPasswords.OrderBy (x => x.Key));
Password.Text = Settings.Default.FJSYSPassword;
}
private void Title_SelectionChanged (object sender, SelectionChangedEventArgs e)
{
if (null != this.Title.SelectedItem && null != this.Password)
{
var selected = (KeyValuePair<string, string>)this.Title.SelectedItem;
this.Password.Text = selected.Value;
}
}
}
}