Skip to content

Commit

Permalink
Merge pull request #460 from davidglassborow/macos-closedown-after-wi…
Browse files Browse the repository at this point in the history
…ndows-shut

macOS samples and templates - closedown after windows shut
  • Loading branch information
TimLariviere committed Jun 17, 2019
2 parents dcf5dbe + f034274 commit 0fd8dd6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/AllControls/macOS/AppDelegate.fs
Expand Up @@ -27,6 +27,8 @@ type AppDelegate() =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
let Main(args: string[]) =
Expand Down
2 changes: 2 additions & 0 deletions samples/Calculator/macOS/AppDelegate.fs
Expand Up @@ -27,6 +27,8 @@ type AppDelegate() =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
let Main(args: string[]) =
Expand Down
2 changes: 2 additions & 0 deletions samples/CounterApp/macOS/AppDelegate.fs
Expand Up @@ -27,6 +27,8 @@ type AppDelegate() =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
let Main(args: string[]) =
Expand Down
2 changes: 2 additions & 0 deletions samples/StaticView/StaticViewCounterApp/macOS/AppDelegate.fs
Expand Up @@ -27,6 +27,8 @@ type AppDelegate() =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
let Main(args: string[]) =
Expand Down
2 changes: 2 additions & 0 deletions samples/TicTacToe/macOS/AppDelegate.fs
Expand Up @@ -27,6 +27,8 @@ type AppDelegate() =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
let Main(args: string[]) =
Expand Down
2 changes: 2 additions & 0 deletions templates/content/blank/NewApp.macOS/AppDelegate.fs
Expand Up @@ -26,6 +26,8 @@ type AppDelegate() =
override __.WillTerminate(notification: NSNotification) =
// Insert code here to tear down your application
()

override __.ApplicationShouldTerminateAfterLastWindowClosed(_) = true

module EntryClass =
[<EntryPoint>]
Expand Down

0 comments on commit 0fd8dd6

Please sign in to comment.