mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 02:07:54 +00:00
Add a checkbox to disable taskbar flash.
Also add ability to set urgent flag for the window on Linux. Fixes #223, fixes #897, fixes #906.
This commit is contained in:
@@ -457,15 +457,11 @@ bool SkipAudio() {
|
||||
}
|
||||
|
||||
bool SkipToast() {
|
||||
#ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION
|
||||
if (Supported()
|
||||
&& GetCapabilities().contains(qsl("inhibitions"))
|
||||
&& !InhibitedNotSupported) {
|
||||
return Inhibited();
|
||||
}
|
||||
#endif // !TDESKTOP_DISABLE_DBUS_INTEGRATION
|
||||
return SkipAudio();
|
||||
}
|
||||
|
||||
return false;
|
||||
bool SkipFlashBounce() {
|
||||
return SkipAudio();
|
||||
}
|
||||
|
||||
bool Supported() {
|
||||
|
||||
Reference in New Issue
Block a user