2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Move system versions to platform/platform_info.

This commit is contained in:
John Preston
2019-06-03 17:41:23 +03:00
parent 0467401635
commit 9c613fe2f7
56 changed files with 784 additions and 488 deletions

View File

@@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "info/profile/info_profile_button.h"
#include "info/profile/info_profile_values.h"
#include "platform/platform_specific.h"
#include "platform/platform_info.h"
#include "lang/lang_keys.h"
#include "core/update_checker.h"
#include "core/application.h"
@@ -239,7 +240,7 @@ void SetupUpdate(not_null<Ui::VerticalLayout*> container) {
}
bool HasTray() {
return cSupportTray() || (cPlatform() == dbipWindows);
return cSupportTray() || Platform::IsWindows();
}
void SetupTrayContent(not_null<Ui::VerticalLayout*> container) {
@@ -277,7 +278,7 @@ void SetupTrayContent(not_null<Ui::VerticalLayout*> container) {
return (workMode == dbiwmWindowOnly)
|| (workMode == dbiwmWindowAndTray);
};
const auto taskbar = (cPlatform() == dbipWindows)
const auto taskbar = Platform::IsWindows()
? addCheckbox(
lng_settings_workmode_window,
taskbarEnabled())
@@ -322,7 +323,7 @@ void SetupTrayContent(not_null<Ui::VerticalLayout*> container) {
}
#ifndef OS_WIN_STORE
if (cPlatform() == dbipWindows) {
if (Platform::IsWindows()) {
const auto minimizedToggled = [] {
return cStartMinimized() && !Global::LocalPasscode();
};