Skip to content

Commit

Permalink
Fixed an autorun bug (second attempt).
Browse files Browse the repository at this point in the history
Now dismissing a pony also removes it from autorun.
  • Loading branch information
Svetomech committed Feb 29, 2016
1 parent 65743a2 commit 8da7fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PonyApp/PonyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ private void OnClosePony(object sender, RoutedEventArgs e) {

private void OnClosePony() {
this.Pony.Window.Close();

if (Main.PonyList.Count >= 1)
UpdatePoniesAutorun();
}

private void OnCloseAllPony(object sender, RoutedEventArgs e) {
Expand Down

0 comments on commit 8da7fb5

Please sign in to comment.