mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-06 21:50:25 +01:00
OSX: Improve app startup time
Importing everything (*) from AppKit takes a while, since we got 3 scripts doing that, startup could take up to few seconds. This change makes script import only what they need, improving startup time to fraction of second.
This commit is contained in:
parent
b19272a67a
commit
1b1ed4d495
@ -1,7 +1,21 @@
|
||||
import sys
|
||||
import os
|
||||
import pty
|
||||
from AppKit import *
|
||||
from AppKit import (
|
||||
objc,
|
||||
NSApp,
|
||||
NSApplicationMain,
|
||||
NSAttributedString,
|
||||
NSFileHandle,
|
||||
NSFileHandleDataAvailableNotification,
|
||||
NSImage,
|
||||
NSMenu,
|
||||
NSMenuItem,
|
||||
NSNotificationCenter,
|
||||
NSObject,
|
||||
NSStatusBar,
|
||||
NSVariableStatusItemLength,
|
||||
)
|
||||
import my
|
||||
import models
|
||||
import askpass
|
||||
|
@ -1,4 +1,4 @@
|
||||
from AppKit import *
|
||||
from AppKit import (objc, NSObject)
|
||||
import my
|
||||
|
||||
|
||||
|
@ -1,5 +1,11 @@
|
||||
import os
|
||||
from AppKit import *
|
||||
from AppKit import (
|
||||
NSBundle,
|
||||
NSData,
|
||||
NSDictionary,
|
||||
NSImage,
|
||||
NSUserDefaults,
|
||||
)
|
||||
import PyObjCTools.AppHelper
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user