Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Load packages before deserializing state - #10888

Merged
maxbrunsfeld merged 1 commit into
masterfrom
mb-fix-package-deserializers
Feb 18, 2016
Merged

maxbrunsfeld merged 1 commit into
masterfrom
mb-fix-package-deserializers

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Fixes issue caught by @izuzak in #10764 (comment)
Refs #10743

I took this as an opportunity to clean up some of the craziness. Thus, I have probably broken something.

@joshaber

Copy link
Copy Markdown
Contributor

@maxbrunsfeld

Copy link
Copy Markdown
Contributor Author

napkin

clone.__defineSetter__ 'windowState', (value) ->
remote.getCurrentWindow().loadSettings.windowState = value

clone

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The window state used to be considered part of the 'load settings', even though it actually used a completely different IPC mechanism under the hood. AFAIK, the reason that it ever had anything to do with the load settings is that for windows w/ no project paths (and hence no key in our on-disk storage system), we needed a place to store the window state when refreshing the window.

There are now separate APIs on the ApplicationDelegate for reading and writing this in-process, in-memory state: getTemporaryWindowState and setTemporaryWindowState. They are async.

@maxbrunsfeld

Copy link
Copy Markdown
Contributor Author

The mac build failure is another flaky test.

maxbrunsfeld pushed a commit that referenced this pull request Feb 18, 2016
Load packages before deserializing state
@maxbrunsfeld
maxbrunsfeld merged commit 3003621 into master Feb 18, 2016
@maxbrunsfeld
maxbrunsfeld deleted the mb-fix-package-deserializers branch February 18, 2016 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants