Use runtime OS checks in settings_menu
This commit is contained in:
parent
3e16c5cf26
commit
dac24fb5b5
1 changed files with 44 additions and 44 deletions
|
|
@ -469,7 +469,7 @@ void SetupKotatoSystem(
|
||||||
}
|
}
|
||||||
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
|
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||||
|
|
||||||
#if defined Q_OS_MAC
|
if (Platform::IsMac()) {
|
||||||
const auto useNativeDecorationsToggled = Ui::CreateChild<rpl::event_stream<bool>>(
|
const auto useNativeDecorationsToggled = Ui::CreateChild<rpl::event_stream<bool>>(
|
||||||
container.get());
|
container.get());
|
||||||
AddButton(
|
AddButton(
|
||||||
|
|
@ -496,7 +496,7 @@ void SetupKotatoSystem(
|
||||||
confirmed,
|
confirmed,
|
||||||
cancelled));
|
cancelled));
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
#endif // Q_OS_MAC
|
}
|
||||||
|
|
||||||
AddButton(
|
AddButton(
|
||||||
container,
|
container,
|
||||||
|
|
@ -513,7 +513,7 @@ void SetupKotatoSystem(
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
|
||||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
if (Platform::IsLinux()) {
|
||||||
AddButton(
|
AddButton(
|
||||||
container,
|
container,
|
||||||
tr::ktg_settings_use_telegram_panel_icon(),
|
tr::ktg_settings_use_telegram_panel_icon(),
|
||||||
|
|
@ -528,7 +528,7 @@ void SetupKotatoSystem(
|
||||||
controller->session().data().notifyUnreadBadgeChanged();
|
controller->session().data().notifyUnreadBadgeChanged();
|
||||||
::Kotato::JsonSettings::Write();
|
::Kotato::JsonSettings::Write();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
#endif // Q_OS_UNIX && !Q_OS_MAC
|
}
|
||||||
|
|
||||||
const QMap<int, QString> trayIconOptions = {
|
const QMap<int, QString> trayIconOptions = {
|
||||||
{ 0, TrayIconLabel(0) },
|
{ 0, TrayIconLabel(0) },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue