diff --git a/backends/taskbar/win32/win32-taskbar.cpp b/backends/taskbar/win32/win32-taskbar.cpp index b1afdf6dee9..046ddb1cd0b 100644 --- a/backends/taskbar/win32/win32-taskbar.cpp +++ b/backends/taskbar/win32/win32-taskbar.cpp @@ -317,6 +317,15 @@ void Win32TaskbarManager::addRecent(const Common::String &name, const Common::St } } +void Win32TaskbarManager::notifyError() { + setProgressState(Common::TaskbarManager::kTaskbarError); + setProgressValue(1, 1); +} + +void Win32TaskbarManager::clearError() { + setProgressState(kTaskbarNoProgress); +} + Common::String Win32TaskbarManager::getIconPath(Common::String target) { // We first try to look for a iconspath configuration variable then // fallback to the extra path diff --git a/backends/taskbar/win32/win32-taskbar.h b/backends/taskbar/win32/win32-taskbar.h index d005b0fea88..36415c1c577 100644 --- a/backends/taskbar/win32/win32-taskbar.h +++ b/backends/taskbar/win32/win32-taskbar.h @@ -40,6 +40,8 @@ public: virtual void setProgressState(TaskbarProgressState state); virtual void setCount(int count); virtual void addRecent(const Common::String &name, const Common::String &description); + virtual void notifyError(); + virtual void clearError(); private: ITaskbarList3 *_taskbar;