Skip to content

Commit

Permalink
fix: Fetching devices in a new window
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Dec 31, 2024
1 parent 06c8a4b commit c6b0292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/utils/app_links/app_links.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ Future<void> 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;
});
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c6b0292

Please sign in to comment.