An open-source cross-platform alternative to AirDrop
feat: should still wait 1 sec if there are favorites
Tien Do Nam816fa49c5c8e
diff --git a/app/lib/provider/network/scan_facade.dart b/app/lib/provider/network/scan_facade.dartindex 5eed11a2..a42e5877 100644--- a/app/lib/provider/network/scan_facade.dart+++ b/app/lib/provider/network/scan_facade.dart@@ -30,10 +30,9 @@ class StartSmartScan extends AsyncGlobalAction {final https = ref.read(settingsProvider).https;await ref.redux(nearbyDevicesProvider).dispatchAsync(StartFavoriteScan(devices: favorites, https: https));- if (!forceLegacy && favorites.isEmpty) {+ if (!forceLegacy) {// Wait a bit before trying the legacy method.// Skip waiting if [forceLegacy] is true.- // Also skip waiting if there are favorites.await sleepAsync(1000);}