2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +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 "storage/localstorage.h"
#include "window/notifications_manager.h"
#include "platform/platform_notifications_manager.h"
#include "platform/platform_info.h"
#include "mainwindow.h"
#include "core/application.h"
#include "auth_session.h"
@@ -599,10 +600,9 @@ void SetupNotificationsContent(not_null<Ui::VerticalLayout*> container) {
const auto nativeKey = [&] {
if (!Platform::Notifications::Supported()) {
return LangKey();
} else if (cPlatform() == dbipWindows) {
} else if (Platform::IsWindows()) {
return lng_settings_use_windows;
} else if (cPlatform() == dbipLinux32
|| cPlatform() == dbipLinux64) {
} else if (Platform::IsLinux()) {
return lng_settings_use_native_notifications;
}
return LangKey();
@@ -619,7 +619,7 @@ void SetupNotificationsContent(not_null<Ui::VerticalLayout*> container) {
return addCheckbox(nativeKey, Global::NativeNotifications());
}();
const auto advancedSlide = (cPlatform() != dbipMac)
const auto advancedSlide = !Platform::IsMac10_8OrGreater()
? container->add(
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
container,