Skip to content

Commit

Permalink
fix occasionally unity GFX device worker thread crash
Browse files Browse the repository at this point in the history
  • Loading branch information
XuYicong committed Sep 2, 2022
1 parent b6fa6cb commit 461efc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlayTools/Keymap/EditorController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ final class EditorController: NSObject {
KeymapHolder.shared.hide()
saveButtons()
editorMode = false
editorWindow.windowScene = nil
// editorWindow.windowScene = nil
previousWindow?.makeKeyAndVisible()
mode.show(false)
focusedControl = nil
Toast.showOver(msg: "Keymapping saved")
} else {
mode.show(true)
previousWindow = screen.keyWindow
editorWindow.windowScene = screen.windowScene
// editorWindow.windowScene = screen.windowScene
editorMode = true
editorWindow.makeKeyAndVisible()
showButtons()
Expand Down

0 comments on commit 461efc0

Please sign in to comment.