Skip to content

An open-source cross-platform alternative to AirDrop

fix: do actual distinguish between quit and exit

Tien Do Nam426741d3b6ef
diff --git a/app/lib/pages/tabs/settings_tab.dart b/app/lib/pages/tabs/settings_tab.dart
index 50899d9a..be5ec4d7 100644
--- a/app/lib/pages/tabs/settings_tab.dart
+++ b/app/lib/pages/tabs/settings_tab.dart
@@ -88,7 +88,9 @@ class SettingsTab extends StatelessWidget {
/// Wayland does window position handling, so there's no need for it. See [https://github.com/localsend/localsend/issues/544]
if (vm.advanced && checkPlatformIsNotWaylandDesktop())
_BooleanEntry(
- label: t.settingsTab.general.saveWindowPlacement,
+ label: defaultTargetPlatform == TargetPlatform.windows
+ ? t.settingsTab.general.saveWindowPlacementWindows
+ : t.settingsTab.general.saveWindowPlacement,
value: vm.settings.saveWindowPlacement,
onChanged: (b) async {
await ref.notifier(settingsProvider).setSaveWindowPlacement(b);
diff --git a/app/lib/util/native/tray_helper.dart b/app/lib/util/native/tray_helper.dart
index 269c6d5a..b18bd779 100644
--- a/app/lib/util/native/tray_helper.dart
+++ b/app/lib/util/native/tray_helper.dart
@@ -37,7 +37,7 @@ Future<void> initTray() async {
),
tm.MenuItem(
key: TrayEntry.close.name,
- label: t.tray.close,
+ label: defaultTargetPlatform == TargetPlatform.windows ? t.tray.closeWindows : t.tray.close,
),
];
await tm.trayManager.setContextMenu(tm.Menu(items: items));