Skip to content

Commit

Permalink
Improves crash state for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Dec 29, 2023
1 parent ae9800f commit bf2374b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App/MAApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ final class MAAppDelegate: NSObject, NSApplicationDelegate {
crashedLastTime = true
}

func applicationWillBecomeActive(_ notification: Notification) {
crashedLastTime = true
}

func applicationDidResignActive(_ notification: Notification) {
crashedLastTime = false
}

func applicationWillTerminate(_ notification: Notification) {
crashedLastTime = false
}
Expand Down

0 comments on commit bf2374b

Please sign in to comment.