Repository navigation
fix(ui): number only kagan windows in kg ui - #150
Merged
Merged
Conversation
A plugin that loads before the main window opens got window 0 in kg ui, because every open window was numbered. kg ui now numbers only kagan's own windows: the main window and the About window. The regression test loads a status plugin first and checks that window 0 is the main window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
kg uinumbered every GPUI window, including the hidden window each plugin opens when it loads. A plugin that loaded before the main window (one withui.status, or any plugin in an--offscreenapp beforekg open) took index 0, so a defaultkg ui snapshotorkg ui screenshothit an empty hidden window and authors had to pass--window 1.What
kg uinumbers and counts only kagan's own windows (the main window and About), in one function used by every window lookup, the "numbered 0 to N" message, and screenshots.docs/ui-driver.md,docs/behaviour.md, decision 273, size ceiling with its Cost line.Draft until the independent review and the Windows and Linux jobs pass.