mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
don't try to reconnect if its the current device
This commit is contained in:
parent
48f55c6806
commit
215077dd0a
@ -119,7 +119,11 @@ class CastDialog extends ConsumerWidget {
|
|||||||
await ref.read(castProvider.notifier).disconnect();
|
await ref.read(castProvider.notifier).disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
ref.read(castProvider.notifier).connect(type, deviceObj);
|
if (!isCurrentDevice(deviceName)) {
|
||||||
|
ref
|
||||||
|
.read(castProvider.notifier)
|
||||||
|
.connect(type, deviceObj);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user