diff --git a/lib/utils/app_links/app_links.dart b/lib/utils/app_links/app_links.dart index a79d4841..6bb7eb99 100644 --- a/lib/utils/app_links/app_links.dart +++ b/lib/utils/app_links/app_links.dart @@ -220,6 +220,7 @@ Future handleArgs( if (serverResult == null) { throw ArgumentError('Server $server not found'); } else { + await ServersProvider.instance.refreshDevices(); final deviceResult = serverResult.devices.firstWhereOrNull((d) { return d.id.toString() == camera; }); diff --git a/lib/utils/window.dart b/lib/utils/window.dart index c91fbcf9..e96b8bd0 100644 --- a/lib/utils/window.dart +++ b/lib/utils/window.dart @@ -134,7 +134,7 @@ extension DeviceWindowExtension on Device { assert(!isEmbedded, 'Can not open a new window in an embedded environment'); - debugPrint('Opening a new window'); + debugPrint('Opening a new window for device $name (${server.name}#$id)'); final window = await MultiWindow.run([ '--theme', SettingsProvider.instance.kThemeMode.value.name,