diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp index 410e52b6c..d1a0f9edd 100644 --- a/Telegram/SourceFiles/core/update_checker.cpp +++ b/Telegram/SourceFiles/core/update_checker.cpp @@ -501,13 +501,13 @@ bool ParseCommonMap( return false; } const auto platforms = document.object(); -#if defined Q_OS_LINUX && defined KTGDESKTOP_APPIMAGE_BUILD +#if defined Q_OS_UNIX && !defined Q_OS_MAC && defined KTGDESKTOP_APPIMAGE_BUILD const auto platform = Platform::InAppImage() ? "appimage" : Platform::AutoUpdateKey(); -#else // Q_OS_LINUX && KTGDESKTOP_APPIMAGE_BUILD +#else // Q_OS_UNIX && !Q_OS_MAC && KTGDESKTOP_APPIMAGE_BUILD const auto platform = Platform::AutoUpdateKey(); -#endif // !Q_OS_LINUX || !KTGDESKTOP_APPIMAGE_BUILD +#endif // !Q_OS_UNIX || Q_OS_MAC || !KTGDESKTOP_APPIMAGE_BUILD const auto it = platforms.constFind(platform); if (it == platforms.constEnd()) { LOG(("Update Error: MTP platform '%1' not found in response." diff --git a/Telegram/SourceFiles/kotato/settings_menu.cpp b/Telegram/SourceFiles/kotato/settings_menu.cpp index 25e35e442..0f7fc4835 100644 --- a/Telegram/SourceFiles/kotato/settings_menu.cpp +++ b/Telegram/SourceFiles/kotato/settings_menu.cpp @@ -414,7 +414,7 @@ void SetupKotatoSystem(not_null container) { ::Kotato::JsonSettings::Write(); }, container->lifetime()); -#ifdef Q_OS_LINUX +#if defined Q_OS_UNIX && !defined Q_OS_MAC AddButton( container, tr::ktg_settings_use_telegram_panel_icon(), @@ -429,7 +429,7 @@ void SetupKotatoSystem(not_null container) { Notify::unreadCounterUpdated(); ::Kotato::JsonSettings::Write(); }, container->lifetime()); -#endif // Q_OS_LINUX +#endif // Q_OS_UNIX && !Q_OS_MAC const QMap trayIconOptions = { { 0, TrayIconLabel(0) },