Skip to content

Commit b7ab44a

Browse files
committed
app: Fixes an issue where file does not save when pressing the hide keyboard button
1 parent d641b31 commit b7ab44a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeApp/Views/EditorView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ struct EditorView: View {
158158
}
159159

160160
Task {
161+
await App.saveCurrentFile()
161162
if await App.monacoInstance.editorInFocus() {
162-
await App.saveCurrentFile()
163163
await App.monacoInstance.blur()
164164
}
165165
}

0 commit comments

Comments
 (0)