Skip to content

Add multi-window support for Network Inspector#99

Merged
rz-openai merged 1 commit intomainfrom
multi-window-support
Jan 21, 2026
Merged

Add multi-window support for Network Inspector#99
rz-openai merged 1 commit intomainfrom
multi-window-support

Conversation

@rz-openai
Copy link
Collaborator

Summary

  • offset new Network Inspector windows from the active window by 100dp
  • pass per-window initial positions into persisted window state logic
  • keep each window backed by its own AppGraph/store

Testing

  • JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home ./gradlew detekt

@rz-openai rz-openai merged commit 8e93188 into main Jan 21, 2026
2 checks passed
@rz-openai rz-openai deleted the multi-window-support branch January 21, 2026 20:58
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c9c4e1bca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +59 to +63
val initialPosition = parentState
?.position
?.takeIf { it.isSpecified && it.x.isSpecified && it.y.isSpecified }
?.let { WindowPosition(it.x + NewWindowOffset, it.y + NewWindowOffset) }
windows.add(createInspectorWindow(initialPosition = initialPosition))

Choose a reason for hiding this comment

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

P2 Badge Avoid persisting offset positions for new windows

Because every window still writes to the same preferences node, creating a new window with an offset initialPosition causes that offset to be persisted even if the user never moves the new window. Opening a new window a few times will overwrite the stored default position and make subsequent launches (and other windows) drift by 100dp per open, potentially ending up off-screen. Consider skipping persistence for secondary windows or storing per-window prefs so the offset is only a launch-time hint.

Useful? React with 👍 / 👎.

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