Skip to content

Persist window sizes for manage-groups and open-project actions - #9690

Merged
mbien merged 1 commit into
apache:masterfrom
mbien:pg-window-size
Oct 13, 2026
Merged

mbien merged 1 commit into
apache:masterfrom
mbien:pg-window-size

Conversation

@mbien

@mbien mbien commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Persist "Manage Groups" and "Open Project" dialog sizes between sessions so that users who have many project or project groups don't have to scroll that much.

I always thought this should be implemented in the DialogDisplayer, but that is for some other time.

@mbien mbien added this to the NB32 milestone Oct 9, 2026
@mbien
mbien requested a review from neilcsmith-net October 9, 2026 02:15
@mbien mbien added Editor UI User Interface ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Oct 9, 2026
@mbien

mbien commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

the open projects file chooser is in the same module. I had that one on my list too. Will add it.

Persist "Manage Groups" and "Open Project" dialog sizes between
sessions so that users who have many project or project groups don't
have to scroll that much.
@mbien mbien changed the title Persist project groups window size Persist window sizes for manage-groups and open-project actions Oct 9, 2026
@mbien

mbien commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

this PR too. Looking forward to having a little bit larger windows :)

@lkishalmi lkishalmi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks sane. even with the leaking this in the constructor..

@mbien

mbien commented Oct 13, 2026 •

Copy link
Copy Markdown
Member Author

even with the leaking this in the constructor..

yeah that looks ugly, but if you would inline the method it would look like:

    public ProjectFileChooser() {
        this.setPreferredSize(fromStorage());
    }

"this" escape is ok to ignore there I think.

thanks a lot for reviewing!

@neilcsmith-net neilcsmith-net left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, not tested.

I always thought this should be implemented in the DialogDisplayer, but that is for some other time.

Funnily enough I was about to say just that after reviewing, then noticed you already had! I really need to pay more attention to your descriptions.

@mbien
mbien merged commit ca8b53a into apache:master Oct 13, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Editor UI User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants