diff --git a/lib/main.dart b/lib/main.dart index 0fc0e60..17bceea 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -50,7 +50,9 @@ void main(List args) async { // Create the tray icon, required for the app to run in the background properly. await trayManager.setIcon( - Platform.isWindows ? 'assets/icons/tray.ico' : 'assets/icons/tray.png', + Platform.isWindows + ? 'assets/icons/tray.ico' + : '/usr/share/icons/hicolor/256x256/apps/dev.mrquantumoff.mcmodpackmanager.tray.png', ); Menu menu = Menu( items: [ @@ -669,7 +671,7 @@ class _QuadrantState extends State bool cond2 = itemDate.add(const Duration(days: 14)).isAfter(DateTime.now()); bool cond3 = GetStorage().read("rssFeeds") == true; - bool cond4 = GetStorage().read("devMode") == true; + bool cond4 = false; // Used to be if DevMode is enabled if (GetStorage().read("devMode")) { debugPrint( "\n\nName: ${item.title}\n\nDate: $itemTimestamp\n\nSeen: $cond1\nIs within last 2 weeks: $cond2\nAre RSS feeds enabled: $cond3\nIs DevMode Enabled: $cond4\n\n"); diff --git a/lib/other/backend.dart b/lib/other/backend.dart index f76419e..2ff1010 100644 --- a/lib/other/backend.dart +++ b/lib/other/backend.dart @@ -997,7 +997,7 @@ Future checkAccountUpdates() async { if (notification["read"] == false) { Map notificationBody = json.decode(notification["message"]); debugPrint("$notification"); - List shownNotifications = + List shownNotifications = GetStorage().read("shownNotifications") ?? []; if (!shownNotifications.contains(notification["notification_id"])) { LocalNotification localNotification = LocalNotification( diff --git a/lib/pages/modpack_importer/import_modpacks/synced_modpack.dart b/lib/pages/modpack_importer/import_modpacks/synced_modpack.dart index c328743..32c349c 100644 --- a/lib/pages/modpack_importer/import_modpacks/synced_modpack.dart +++ b/lib/pages/modpack_importer/import_modpacks/synced_modpack.dart @@ -154,10 +154,12 @@ class _SyncedModpackState extends State { ); } }, - icon: localSyncDateMillis < widget.lastSynced + icon: (localSyncDateMillis < widget.lastSynced && + localSyncDateMillis != 0) ? const Icon(Icons.update) : const Icon(Icons.download), - label: localSyncDateMillis < widget.lastSynced + label: (localSyncDateMillis < widget.lastSynced && + localSyncDateMillis != 0) ? Text(AppLocalizations.of(context)!.update) : Text( AppLocalizations.of(context)!.download),