WrapEarnPass created an issue (geany/geany#4606)

Take this report with a large dose of salt as I have exactly 1 week of 
experience with GTK.

If I have a tab, and it is persistent, except in a specific case Build starts 
adding new tabs.
<img width="706" height="185" alt="Image" 
src="https://github.com/user-attachments/assets/e44b61a4-f880-4591-89cc-b8bf097bb98b";
 />

I have a reproducible case. It was found during development for 
geany/geany-plugins#1577
https://github.com/WrapEarnPass/geany-plugins/tree/buildmenubug

To trigger the bug from that version of Auto-run:
open a Project and navigate to a known Filetype (C type), then open 
Project>properties
Auto-run tab will be at the end. Cancel
open Project>properties
Auto-run tab moved. Cancel
Open but do not save a New file (None type)
open Project>properties
Auto-run is missing (as intended). Cancel
select a known Filetype file, then open Project>properties
Build has two tabs (Bug). Auto-run has appeared again (as intended). Cancel 
again to get back to the editor.

Every time you repeat the steps of:
Properties on Known, Cancel.
Properties on Unknown, Cancel.
Properties on Known, a new Build tab appears.

<img width="792" height="82" alt="Image" 
src="https://github.com/user-attachments/assets/de762996-0a25-489c-b2e1-15abc855bfb9";
 />

Eventually/Sometimes it will crash after that.

I have a workaround, which was actually what ended up being implemented for 
geany/geany-plugins#1577:
Don't persist tabs to Project menu any longer than the duration between 
project-dialog-open and (project-dialog-confirmed|project-dialog-close)

Behavior on geany/geany@98bcbee3b99d71dfcdd9d3556ace9530ceda818d
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
build@debian:~/Projects/geany/geany$ git log
commit 98bcbee3b99d71dfcdd9d3556ace9530ceda818d (HEAD -> master, origin/master, 
origin/HEAD)



-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4606
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/[email protected]>

Reply via email to