-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor grabs focus when opening files at startup #3585
Comments
... more over, the files are opend twice if a project was active (I guess first spyder opens it's list and then later the project) -> should this be put in a separate issue? |
Thanks for reporting. I opened an issue about files being opened twice at startup when a project is active. We'll fix this problem in 3.0.2. I don't know what to do about this one though. It seems a problem when you have a lot of files opened in your last session (30, 50?), but nobody has complained about it before :-) |
I think even with a handful of files it's slightly annoying though it wasn't annoying enough for me to complain about. |
I think the solution would be to prevent our |
OK. Maybe I am too impatient … ;-) and maybe there is something wrong with my setup. Anyway I can see the files open one by one (about 1-2 per second). Don’t know if others observe the same. Since I am developing a plugin, restart spyder frequently, 10 seconds waiting for my 10 files to open (20 when I have a project active) is getting on my nerves… I imagine the quick fix would be, to not put each newly opened file on the front tab (e.g. open the one that was front last time first, then add tabs in the background without setting the focus). A way to speed up things may be to skip parsing each file (at least an outline is generated for each while loading) and deferr that to the moment the user switches to the file…. what do you think? Cheers,
Christoph Gohle |
Description of your problem
What steps will reproduce the problem?
What is the expected output? What do you see instead?
After the main window appears, it is grabbing focus for each file that is reopened from the previous session. In addition each of these files is put to the front of the editor window.
Reopening files in a thread is a good idea to reduce startup time. However, at the moment this is not effective, as the user will not be able to do anything (neither in spyder nor in any other application) until all files are loaded.
Please provide any additional information below
Versions and main components
The text was updated successfully, but these errors were encountered: