Skip to content

Restore layout when opening file with e#43

Open
gburger11 wants to merge 1 commit into
tom-pollak:mainfrom
gburger11:layout_edit
Open

Restore layout when opening file with e#43
gburger11 wants to merge 1 commit into
tom-pollak:mainfrom
gburger11:layout_edit

Conversation

@gburger11
Copy link
Copy Markdown

When opening a file with e, the file correctly opens, but the layout is not restored. The hideRestore option for the panels and the autoMaximizeWindow are not respected.

I suggest this change to call onHide when opening a file with IPC. The issue I faced when doing this on my system (Ubuntu 24.04), was that the handleIPCMessage was called twice. This lead to a double toggle of the panels (so nothing). I added a simple (maybe naive ?) guard to avoid calling handleIPCMessage twice in a second.

The change works on my setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant