diff --git a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart index c3ad1ef0..f0463f91 100644 --- a/ui/flutter/lib/app/modules/app/controllers/app_controller.dart +++ b/ui/flutter/lib/app/modules/app/controllers/app_controller.dart @@ -202,7 +202,10 @@ class AppController extends GetxController with WindowListener, TrayListener { onClick: (menuItem) => {windowManager.destroy()}, ), ]); - await trayManager.setToolTip('Gopeed'); + if (!Util.isLinux()) { + // Linux seems not support setToolTip, refer to: https://github.com/GopeedLab/gopeed/issues/241 + await trayManager.setToolTip('Gopeed'); + } await trayManager.setContextMenu(menu); trayManager.addListener(this); } diff --git a/ui/flutter/lib/util/util.dart b/ui/flutter/lib/util/util.dart index 17b74870..247a81f3 100644 --- a/ui/flutter/lib/util/util.dart +++ b/ui/flutter/lib/util/util.dart @@ -93,6 +93,10 @@ class Util { return !kIsWeb && Platform.isMacOS; } + static isLinux() { + return !kIsWeb && Platform.isLinux; + } + static isWeb() { return kIsWeb; }