2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fixed indefinitely bouncing of dock icon.

This commit is contained in:
23rd
2020-05-15 01:10:27 +03:00
committed by John Preston
parent 1c5eadcd79
commit 9ff427afad

View File

@@ -37,6 +37,12 @@ namespace {
constexpr auto kMinimalAlertDelay = crl::time(500);
constexpr auto kWaitingForAllGroupedDelay = crl::time(1000);
#ifdef Q_OS_MAC
constexpr auto kSystemAlertDuration = crl::time(1000);
#elif // !Q_OS_MAC
constexpr auto kSystemAlertDuration = crl::time(0);
#endif // Q_OS_MAC
} // namespace
System::System(not_null<Main::Session*> session)
@@ -295,7 +301,7 @@ void System::showNext() {
if (Global::FlashBounceNotify() && !Platform::Notifications::SkipFlashBounce()) {
if (const auto widget = App::wnd()) {
if (const auto window = widget->windowHandle()) {
window->alert(0);
window->alert(kSystemAlertDuration);
// (window, SLOT(_q_clearAlert())); in the future.
}
}