Fix Q_OS_LINUX -> Q_OS_UNIX replacement
This commit is contained in:
parent
0943d58ea7
commit
2098b2c67d
2 changed files with 5 additions and 5 deletions
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -414,7 +414,7 @@ void SetupKotatoSystem(not_null<Ui::VerticalLayout*> 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<Ui::VerticalLayout*> container) {
|
|||
Notify::unreadCounterUpdated();
|
||||
::Kotato::JsonSettings::Write();
|
||||
}, container->lifetime());
|
||||
#endif // Q_OS_LINUX
|
||||
#endif // Q_OS_UNIX && !Q_OS_MAC
|
||||
|
||||
const QMap<int, QString> trayIconOptions = {
|
||||
{ 0, TrayIconLabel(0) },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue