Skip to content

Commit

Permalink
Show error toast when init system tray failed
Browse files Browse the repository at this point in the history
  • Loading branch information
narumi147 committed Feb 25, 2023
1 parent 61b0058 commit 31a9376
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/app/tools/system_tray.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';

import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:system_tray/system_tray.dart';

import 'package:chaldea/generated/l10n.dart';
Expand Down Expand Up @@ -75,6 +76,8 @@ class SystemTrayUtil {
_installed = true;
} catch (e, s) {
logger.e('init system tray failed', e, s);
EasyLoading.showError(
'${S.current.failed}: ${S.current.show_system_tray}');
}
}
}

0 comments on commit 31a9376

Please sign in to comment.