2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add Platform::AutostartSupported

This commit is contained in:
Ilya Fedin
2020-05-29 21:49:39 +04:00
committed by John Preston
parent 413ddf285e
commit e098922a4b
6 changed files with 22 additions and 2 deletions

View File

@@ -404,8 +404,7 @@ void SetupTrayContent(not_null<Ui::VerticalLayout*> container) {
}, taskbar->lifetime());
}
#ifndef OS_WIN_STORE
if (Platform::IsWindows() || Platform::IsLinux()) {
if (Platform::AutostartSupported()) {
const auto minimizedToggled = [] {
return cStartMinimized() && !Global::LocalPasscode();
};
@@ -454,6 +453,7 @@ void SetupTrayContent(not_null<Ui::VerticalLayout*> container) {
}, minimized->lifetime());
}
#ifndef OS_WIN_STORE
if (Platform::IsWindows()) {
const auto sendto = addCheckbox(
tr::lng_settings_add_sendto(tr::now),