Skip to content

Commit e252e7a

Browse files
committed
fix: attempt to force unsuspend when user taps 'all devices are paused' warning
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 974855b commit e252e7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sushitrain/StartView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,13 @@ struct StartView: View {
532532
}
533533
.onTapGesture {
534534
Task {
535+
Log.info("Attempting to fix 'no devices are connected'")
535536
self.appState.userSettings.userPausedDevices.removeAll()
537+
await self.appState.suspend(false)
538+
Log.info("Updating device suspension")
536539
await self.appState.updateDeviceSuspension()
537540
showNoPeersEnabledWarning = false
541+
Log.info("Done fixing 'no devices are connected'")
538542
}
539543
}
540544
}

0 commit comments

Comments
 (0)