Skip to content

fix(gui): make the Split view checkbox correctly toggle between both modes#2801

Merged
skylot merged 1 commit intoskylot:masterfrom
jpstotz:splitview
Feb 24, 2026
Merged

fix(gui): make the Split view checkbox correctly toggle between both modes#2801
skylot merged 1 commit intoskylot:masterfrom
jpstotz:splitview

Conversation

@jpstotz
Copy link
Copy Markdown
Collaborator

@jpstotz jpstotz commented Feb 24, 2026

I noticed minor bug: The new "Split view" checkbox works for like a three-state button. When switching from split to normal the checkbox often stays checked.

The problem seems to be that the Split view checkbox not only exists once but multiple times, one persistent instance for the normal view and one instance that is every time created when you switch to the split view mode.

IMHO the code is with my changes is still very complex and a bit "mind-twisted" but now the checkbox state is consistent.

While playing around with the split view I got the feeling that when you activate split view the smali code pane (and the smali code) is loaded multiple times I think up to five times. Also the code position jumps around a few times (beginning -> code pos -> beginning -> code pos) which is not very nice. But I wasn't able to identify the cause for this.

@skylot
Copy link
Copy Markdown
Owner

skylot commented Feb 24, 2026

@jpstotz thanks, looks good to me.
I wonder is this a regression from PR #2784, or it was broken before?
I want to prepare new release and not include that big PR, but not sure do I need to backport this change 🤔

@skylot skylot merged commit 09d39de into skylot:master Feb 24, 2026
2 checks passed
@jpstotz jpstotz deleted the splitview branch February 24, 2026 20:02
@jpstotz
Copy link
Copy Markdown
Collaborator Author

jpstotz commented Feb 24, 2026

@skylot Just tested it and it was even more broken without that PR.

@skylot
Copy link
Copy Markdown
Owner

skylot commented Feb 24, 2026

it was even more broken without that PR

@jpstotz 🤣

I backport this PR (into new stable branch) and fix repaint and UI updates, it works better now.
Tomorrow (if we don't get another nasty issue) I will prepare release from that branch.

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.

2 participants