mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Don't hold GApplication
That's a much better way to avoid defunct event loop that will work in any edge case Also don't assume GApplication is always running in Platform::Notifications::Enforced
This commit is contained in:
@@ -830,7 +830,9 @@ bool Supported() {
|
||||
bool Enforced() {
|
||||
// Wayland doesn't support positioning
|
||||
// and custom notifications don't work here
|
||||
return IsWayland() || Window::Notifications::OptionGNotification.value();
|
||||
return IsWayland()
|
||||
|| (Gio::Application::get_default()
|
||||
&& Window::Notifications::OptionGNotification.value());
|
||||
}
|
||||
|
||||
bool ByDefault() {
|
||||
|
||||
Reference in New Issue
Block a user