eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.16k stars 461 forks source link

CodeLite does not remember navigation bar show/hide state #2444

Open UffeJakobsen opened 4 years ago

UffeJakobsen commented 4 years ago

CodeLite does not remember navigation bar show/hide state between restarts

Navigation bar state is remembered between workspace switches within the same codelite "run" When codelite is quit and run again - it does not remember the navigation bar state

Previously reported in CL13 issue #2279

(CodeLite 14, AachLinux)

UffeJakobsen commented 4 years ago

This is a preventive action - this issue is still valid. I'm making this comment to prevent the "stale bot" from closing it It seems to be a bad idea to have en automatic bot close issues

eranif commented 4 years ago

I am unable to reproduce this issue (at least on Windows)

eranif commented 4 years ago

I just tested this on Ubuntu 18.04 - also seems to be working fine (i.e. it remembers the navigation bar state between restarts)

UffeJakobsen commented 4 years ago

hmm I'm facing this problem every time i start codelite 14.0

I did some more digging into the problewm and here is what I found:

It actually seems to have something to do with the way that I close codelite and its workspace

Here how to recreate the issue

1) Open an existing workspace/project in codelite 2) Make sure that the navigation bar is visible 3) close the workspace/project (using the menu entry Workspace/Close workspace)

Observation: If I just quit codelite without first closing the workspace/project then it will remember the navigation bar state - but that is not the way that I use codelite :-)

eranif commented 4 years ago

This explains this. The "Close Workspace" action, hides the navigation bar. So when you close CodeLite - this is the state that get saved. A simple solution: when closing a workspace, the navigation bar should be "disabled" but not hidden

UffeJakobsen commented 4 years ago

That explains - I thought that the state was saved within the workspace/project :-)

eranif commented 4 years ago

No, it's a global state

UffeJakobsen commented 4 years ago

ok, just hiding the nav bar (instead of disable) on the startup pane seems like a good solution to this issue :-)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs (in 5 days). Thank you for your contributions.

UffeJakobsen commented 3 years ago

Manual "anti-stale-bot" comment to drag this issue out of stale state...

Could someone with the right level of access please put a "bug" label or something on this issue ? thanks

tuberry commented 3 years ago

Can confirm this with Enable localization enabled. The translated items on tabs, eg. 工作区(workspace in Chinese) on Workspace View, never show on the next startup. But it will remember the show state if Enable localization is disabled.