|
@@ -18,14 +18,13 @@ struct AutosaveMenu: View {
|
|
|
@Binding var hasAutosave: Bool
|
|
@Binding var hasAutosave: Bool
|
|
|
|
|
|
|
|
var body: some View {
|
|
var body: some View {
|
|
|
- Button("Save and Cleanup") {
|
|
|
|
|
|
|
+ Button("Save and Cleanup", systemImage: "arrow.3.trianglepath") {
|
|
|
tryAutosave()
|
|
tryAutosave()
|
|
|
}
|
|
}
|
|
|
.keyboardShortcut("R", modifiers: [.command, .shift])
|
|
.keyboardShortcut("R", modifiers: [.command, .shift])
|
|
|
// .disabled(!shouldAutosave)
|
|
// .disabled(!shouldAutosave)
|
|
|
-
|
|
|
|
|
- Text(" Next Autosave: after \(ymd(nextSunday(weekStart)))")
|
|
|
|
|
- .onAppear(perform: tryAutosave)
|
|
|
|
|
|
|
+ .onAppear(perform: tryAutosave)
|
|
|
|
|
+ .help("Will save as \(ymd(weekStart)) after \(ymd(nextSunday(weekStart)))")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func tryAutosave() {
|
|
func tryAutosave() {
|