elementary / code

Code editor designed for elementary OS
https://elementary.io
GNU General Public License v3.0
480 stars 112 forks source link

Project Chooser: Slow to react when project changed if several documents need closing and opening #1422

Open jeremypw opened 9 months ago

jeremypw commented 9 months ago

What Happened?

Switching between two projects each with multiple documents open by clicking on their names in the drop-down list on the ChooseProject button did not produce any immediate action (and the dropdown remained open) leading the user to wonder whether the click had been registered. Presumable Code is busy closing/hiding the old project documents and opening/unhiding the new projects documents which can take >1 second.

Steps to Reproduce

  1. Open two projects
  2. Open several documents in each
  3. Switch between the two projects using the Choose Project button.

Expected Behavior

There should be some visual feedback that the choice has been registered and is being implemented e.g. the dropdown should close and maybe a spinner shown in the active project widget until the new project is ready to use.

OS Version

7.x (Horus)

Software Version

Compiled from git

Log Output

No response

Hardware Info

No response

jeremypw commented 9 months ago

This seems to have improved after pulling the latest master but could still be an issue with a lot of documents or after using without closing for a long time