arblant
firefox-vpn-client / app / macos / Runner / AppDelegate.swift
AppDelegate.swift15 lines · 427 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import Cocoa
import FlutterMacOS

@main
class AppDelegate: FlutterAppDelegate {
  // Closing the window hides it in the menu bar (DesktopBridge); the app
  // ends from the menu's Quit or Cmd+Q.
  override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
    return false
  }

  override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
    return true
  }
}