2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku

This commit is contained in:
Ilya Fedin
2020-06-13 05:03:23 +04:00
committed by John Preston
parent 56de3194ef
commit dbad9fa73a
27 changed files with 87 additions and 85 deletions

View File

@@ -499,11 +499,11 @@ void NotificationsCount::SampleWidget::destroyDelayed() {
_deleted = true;
// Ubuntu has a lag if deleteLater() called immediately.
#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
#if defined Q_OS_UNIX && !defined Q_OS_MAC
QTimer::singleShot(1000, [this] { delete this; });
#else // Q_OS_LINUX32 || Q_OS_LINUX64
#else // Q_OS_UNIX && !Q_OS_MAC
deleteLater();
#endif // Q_OS_LINUX32 || Q_OS_LINUX64
#endif // Q_OS_UNIX && !Q_OS_MAC
}
void SetupAdvancedNotifications(