diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-02 04:24:24 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-02 04:24:24 +0300 |
commit | cc8f55dc349c2983c15d27dd2b014ba4ace36f62 (patch) | |
tree | fd73706c4d3ebdfe0ef24b4141db3812ac214346 /main/src/addins/WindowsPlatform | |
parent | d73b3d380fe951d9e909d12acb3cccaddfab3aea (diff) |
Bug 23961 - [Feature-Windows Taskbar Progress] XS doesn't remove the red flashy progress bar after user cancel the current build process.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs index abb8db19eb..32cffadba9 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs @@ -102,6 +102,13 @@ namespace MonoDevelop.Platform IntPtr handle = GdkWin32.HgdiobjGet (IdeApp.Workbench.RootWindow.GdkWindow); TaskbarManager.Instance.SetProgressState (TaskbarProgressBarState.Error, handle); TaskbarManager.Instance.SetProgressValue (1, 1, handle); + + // Added a timeout to removing the red progress bar. This is to fix the dependency on a status bar update + // that won't happen until the status bar receives another update. + GLib.Timeout.Add (500, delegate { + TaskbarManager.Instance.SetProgressState (TaskbarProgressBarState.NoProgress, handle); + return false; + }); } public override object GetFileAttributes (string fileName) |