mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 11:35:35 +03:00
GH-376 Re-set NSWindow's delegate just before closing
- When exiting full screen, often, some delegate methods of NSWindow get called after deallocation. This is just a quick-and-dirty fix.
This commit is contained in:
parent
612882bfd9
commit
b6c9624875
@ -527,6 +527,11 @@ extension MainWindowComponent {
|
||||
isToolButtonsVisible: self.workspace.isToolButtonsVisible,
|
||||
toolPrefDatas: self.toolPrefDatas())
|
||||
|
||||
// When exiting full screen, often, some delegate methods of NSWindow get called after deallocation. This is just
|
||||
// a quick-and-dirty fix.
|
||||
// TODO: fix it for real...
|
||||
self.windowController.window?.delegate = nil
|
||||
|
||||
self.publish(event: MainWindowAction.close(mainWindow: self, mainWindowPrefData: prefData))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user