From adbc456302ccf0f1b05ff1c6aa93e2b082139108 Mon Sep 17 00:00:00 2001 From: Pekka Kauppila Date: Fri, 11 Apr 2014 15:23:07 +0300 Subject: [PATCH] Allow save only after modification --- ImageSequencer/MainPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ImageSequencer/MainPage.xaml.cs b/ImageSequencer/MainPage.xaml.cs index be93ab5..ae32860 100644 --- a/ImageSequencer/MainPage.xaml.cs +++ b/ImageSequencer/MainPage.xaml.cs @@ -279,6 +279,8 @@ namespace ImageSequencer } await Render(_animationIndex, true); + + _saveButton.IsEnabled = true; } private async void FrameButton_Click(object sender, EventArgs e) @@ -298,6 +300,8 @@ namespace ImageSequencer } await Render(_animationIndex, true); + + _saveButton.IsEnabled = true; } private void SaveButton_Click(object sender, EventArgs e) @@ -338,6 +342,7 @@ namespace ImageSequencer } SetControlsEnabled(true); + _saveButton.IsEnabled = false; } private void ShowProgressIndicator(String text) @@ -380,6 +385,8 @@ namespace ImageSequencer AnimatedAreaIndicator.Height = rect.Height; _animatedArea.Rect = rect; + + _saveButton.IsEnabled = true; } }