}
}
if (restore) {
- log.Write(_T("Restoring previous mute state"));
+ log.Write(L"Restoring previous mute state");
ShowNotification(
- _T("Volume restored"),
- _T("All endpoints have been restored to their previous configuration"));
+ L"Volume restored",
+ L"All endpoints have been restored to their previous configuration");
+ if (withDelay) {
+ Sleep(2000);
+ }
winAudio_->RestoreMuteStatus();
}
}
const TrayIcon* trayIcon_;
- void NotifyRestoreCondition(int type, bool active);
+ void NotifyRestoreCondition(int type, bool active, bool withDelay);
void SaveMuteStatus();
- void RestoreVolume();
+ void RestoreVolume(bool withDelay = false);
- void ShowNotification(const tstring& title, const tstring& text);
+ void ShowNotification(const std::wstring& title, const std::wstring& text);
};