From 3a0937a2f75c279de7c113121c098b04a59fe9d1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 19 Feb 2013 00:30:33 -0800 Subject: [PATCH] Fix back button. --- installer/installtool/MainWindow.xaml.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/installer/installtool/MainWindow.xaml.cs b/installer/installtool/MainWindow.xaml.cs index 582da61a..1a727c9c 100644 --- a/installer/installtool/MainWindow.xaml.cs +++ b/installer/installtool/MainWindow.xaml.cs @@ -53,6 +53,8 @@ private void backButton__Click(object sender, RoutedEventArgs e) { swap(welcomePanel_); } + + backButton_.IsEnabled = currentPanel_ != welcomePanel_; } private void nextButton__Click(object sender, RoutedEventArgs e) @@ -67,10 +69,7 @@ private void nextButton__Click(object sender, RoutedEventArgs e) swap(licensePanel_); } - if (currentPanel_ != welcomePanel_) - { - backButton_.IsEnabled = true; - } + backButton_.IsEnabled = true; } } }