Add Qt window frame string for Wayland

This commit is contained in:
Ilya Fedin 2023-09-21 12:45:58 +04:00 committed by John Preston
parent ff9321e971
commit 0464a558f0
3 changed files with 5 additions and 2 deletions

View File

@ -548,6 +548,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_settings_title_account_name" = "Show active account";
"lng_settings_title_total_count" = "Total unread count";
"lng_settings_native_frame" = "Use system window frame";
"lng_settings_qt_frame" = "Use Qt window frame";
"lng_settings_auto_start" = "Launch Telegram when system starts";
"lng_settings_start_min" = "Launch minimized";
"lng_settings_auto_start_disabled_uwp" = "Starting with the system was disabled in Windows Settings.\n\nPlease enable Telegram Desktop in the Startup Apps Settings.";

View File

@ -409,7 +409,9 @@ void SetupWindowTitleContent(
if (Ui::Platform::NativeWindowFrameSupported()) {
const auto nativeFrame = addCheckbox(
tr::lng_settings_native_frame(),
Platform::IsWayland()
? tr::lng_settings_qt_frame()
: tr::lng_settings_native_frame(),
Core::App().settings().nativeWindowFrame());
nativeFrame->checkedChanges(

@ -1 +1 @@
Subproject commit caff63f28434e295ba274008f1f0fea1ffb25728
Subproject commit f317f20ac831c9564575f9ce6f0d3f8b40aa4c90