mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Platform::IsWayland could be used on any platform now
This commit is contained in:
@@ -773,13 +773,9 @@ void Application::notifyFileDialogShown(bool shown) {
|
||||
}
|
||||
|
||||
QWidget *Application::getModalParent() {
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
return Platform::IsWayland()
|
||||
? App::wnd()
|
||||
: nullptr;
|
||||
#endif // Q_OS_UNIX && !Q_OS_MAC
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user