Skip to content

Fix qmdiEditor: cannot hide preview #146#152

Merged
diegoiast merged 2 commits into
codepointerapp:mainfrom
nandhishtr:146-editor-cannot-hide-preview
Dec 16, 2025
Merged

Fix qmdiEditor: cannot hide preview #146#152
diegoiast merged 2 commits into
codepointerapp:mainfrom
nandhishtr:146-editor-cannot-hide-preview

Conversation

@nandhishtr

Copy link
Copy Markdown
Contributor

Issue: Even though the preview was toggled off, the preview gets enabled once the user starts typing. Everytime the text is modified, updateClientName() function is called, which only considers if the current file has preview and default autoPreview which is always True.

Solution: We still need updateClientName() call when the text is changed but just the preview has to retain previous state. Since autoPreview is only used at openFile for particular client (only relevant at that point), update it with current state of preview and then update client name

If we have to do it differently, We need to separate preview settings from updateClientName

@sonarqubecloud

Copy link
Copy Markdown

@diegoiast
diegoiast merged commit f016f08 into codepointerapp:main Dec 16, 2025
9 of 10 checks passed
@diegoiast

Copy link
Copy Markdown
Collaborator

https://github.com/diegoiast/qtedit4/actions/runs/20267671314 it works on this build, so no problem. Nice!

The windows build will get fixed tonight. It was one of the errors I introduced while working on flatpack. I have a github-actions branch which I use to spam the builds, and then I squash it into main when things are working.

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