Added a lot of functionality. Bugfixes and changes

This commit is contained in:
2026-02-15 16:46:06 +01:00
parent 2434e554f8
commit 04c9b8da1e
31 changed files with 6653 additions and 239 deletions

View File

@@ -15,6 +15,11 @@ struct oAIApp: App {
@State private var chatViewModel = ChatViewModel()
@State private var showAbout = false
init() {
// Start email handler on app launch
EmailHandlerService.shared.start()
}
var body: some Scene {
WindowGroup {
ContentView()
@@ -23,6 +28,14 @@ struct oAIApp: App {
.sheet(isPresented: $showAbout) {
AboutView()
}
#if os(macOS)
.onReceive(NotificationCenter.default.publisher(for: NSApplication.willTerminateNotification)) { _ in
// Trigger auto-save on app quit
Task {
await chatViewModel.onAppWillTerminate()
}
}
#endif
}
#if os(macOS)
.windowStyle(.hiddenTitleBar)