Skip to content

Commit a586bd4

Browse files
committed
fix: macOS build
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 7a011ed commit a586bd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sushitrain/StartView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ struct StartView: View {
534534
Task {
535535
Log.info("Attempting to fix 'no devices are connected'")
536536
self.appState.userSettings.userPausedDevices.removeAll()
537-
await self.appState.suspend(false)
537+
#if os(iOS)
538+
await self.appState.suspend(false)
539+
#endif
538540
Log.info("Updating device suspension")
539541
await self.appState.updateDeviceSuspension()
540542
showNoPeersEnabledWarning = false

0 commit comments

Comments
 (0)