Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix tab lable translation (#13240)

21pagesa77752c4cb19
diff --git a/flutter/lib/desktop/widgets/tabbar_widget.dart b/flutter/lib/desktop/widgets/tabbar_widget.dart
index 81f264073..6e7c02d2a 100644
--- a/flutter/lib/desktop/widgets/tabbar_widget.dart
+++ b/flutter/lib/desktop/widgets/tabbar_widget.dart
@@ -1080,11 +1080,12 @@ class _TabState extends State<_Tab> with RestorationMixin {
return ConstrainedBox(
constraints: BoxConstraints(maxWidth: widget.maxLabelWidth ?? 200),
child: Tooltip(
- message: widget.tabType == DesktopTabType.main
- ? ''
- : translate(widget.label.value),
+ message:
+ widget.tabType == DesktopTabType.main ? '' : widget.label.value,
child: Text(
- translate(widget.label.value),
+ widget.tabType == DesktopTabType.main
+ ? translate(widget.label.value)
+ : widget.label.value,
textAlign: TextAlign.center,
style: TextStyle(
color: isSelected