Fix back button.

This commit is contained in:
David Anderson 2013-02-19 00:30:33 -08:00
parent 489c275d88
commit 3a0937a2f7

View File

@ -53,6 +53,8 @@ namespace installtool
{ {
swap(welcomePanel_); swap(welcomePanel_);
} }
backButton_.IsEnabled = currentPanel_ != welcomePanel_;
} }
private void nextButton__Click(object sender, RoutedEventArgs e) private void nextButton__Click(object sender, RoutedEventArgs e)
@ -67,10 +69,7 @@ namespace installtool
swap(licensePanel_); swap(licensePanel_);
} }
if (currentPanel_ != welcomePanel_)
{
backButton_.IsEnabled = true; backButton_.IsEnabled = true;
} }
} }
} }
}