From d3ccf6032bb51418a575205a412751f7d1879fd6 Mon Sep 17 00:00:00 2001 From: Mr-Update <37781396+Mr-Update@users.noreply.github.com> Date: Fri, 10 Mar 2023 13:00:32 +0100 Subject: [PATCH] Update tabbar_widget.dart --- flutter/lib/desktop/widgets/tabbar_widget.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter/lib/desktop/widgets/tabbar_widget.dart b/flutter/lib/desktop/widgets/tabbar_widget.dart index 1e62fb33d..7700f197e 100644 --- a/flutter/lib/desktop/widgets/tabbar_widget.dart +++ b/flutter/lib/desktop/widgets/tabbar_widget.dart @@ -593,7 +593,7 @@ class WindowActionPanelState extends State Offstage( offstage: !widget.showMinimize || Platform.isMacOS, child: ActionIcon( - message: 'Minimize', + message: translate('Minimize'), icon: IconFont.min, onTap: () { if (widget.isMainWindow) { @@ -608,7 +608,7 @@ class WindowActionPanelState extends State offstage: !widget.showMaximize || Platform.isMacOS, child: Obx(() => ActionIcon( message: - widget.isMaximized.value ? "Restore" : "Maximize", + widget.isMaximized.value ? translate("Restore") : translate("Maximize"), icon: widget.isMaximized.value ? IconFont.restore : IconFont.max, @@ -618,7 +618,7 @@ class WindowActionPanelState extends State Offstage( offstage: !widget.showClose || Platform.isMacOS, child: ActionIcon( - message: 'Close', + message: translate('Close'), icon: IconFont.close, onTap: () async { final res = await widget.onClose?.call() ?? true; @@ -1076,7 +1076,7 @@ class AddButton extends StatelessWidget { @override Widget build(BuildContext context) { return ActionIcon( - message: 'New Connection', + message: translate('New Connection'), icon: IconFont.add, onTap: () => rustDeskWinManager.call( WindowType.Main, kWindowMainWindowOnTop, ""),