mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-224868 forbid using of OSProcessHandler before CONFIGURATION_STORE_INITIALIZED - move init of TouchBarsManager after service registration
GitOrigin-RevId: 64196687f986fa569cb7b6e944f4da9c500576f8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7405e817ab
commit
f91c116e4c
@@ -159,14 +159,21 @@ private fun startApp(app: ApplicationImpl,
|
||||
MacOSApplicationProvider.initApplication()
|
||||
}
|
||||
|
||||
// ensure that TouchBarsManager is loaded before WelcomeFrame/project
|
||||
// do not wait completion - it is thread safe and not required for application start
|
||||
NonUrgentExecutor.getInstance().execute {
|
||||
registerFuture.thenRunAsync(Runnable {
|
||||
// ensure that TouchBarsManager is loaded before WelcomeFrame/project
|
||||
// do not wait completion - it is thread safe and not required for application start
|
||||
runActivity("mac touchbar") {
|
||||
if (app.isDisposeInProgress) {
|
||||
return@Runnable
|
||||
}
|
||||
Foundation.init()
|
||||
|
||||
if (!app.isDisposeInProgress) {
|
||||
return@Runnable
|
||||
}
|
||||
TouchBarsManager.initialize()
|
||||
}
|
||||
}
|
||||
}, NonUrgentExecutor.getInstance())
|
||||
}
|
||||
|
||||
WeakFocusStackManager.getInstance()
|
||||
|
||||
Reference in New Issue
Block a user