BusyMirror 1.2.6: always enable Mirror Now when calendars accessible; route/manual decided at runtime

This commit is contained in:
2025-10-10 09:08:26 +02:00
parent 6676e62889
commit 74b9949610
2 changed files with 7 additions and 6 deletions

View File

@@ -153,8 +153,9 @@ struct ContentView: View {
// Mirrors can run either by manual selection (source + at least one target)
// or using predefined routes. This derived flag controls the Mirror Now button.
private var canRunMirrorNow: Bool {
let manualOK = !targetIDs.isEmpty && sourceIndex < calendars.count
return hasAccess && !isRunning && !calendars.isEmpty && (manualOK || !routes.isEmpty)
// Enable Mirror Now whenever calendars are available and permission is granted.
// The action itself chooses between routes or manual selection.
return hasAccess && !isRunning && !calendars.isEmpty
}
private static let intFormatter: NumberFormatter = {