-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Multiple stacked "do you want to save" boxes blocking each other #304
Comments
I suspect this is due to they way Pulsar handles restoring unsaved tabs. It can be a bit confusing as there are several different ways this is handled, see #281 (comment) for a summary. I think this "logic" is probably up for review! As you say you "start Pulsar in a folder" I guess this means you have a project folder open. The way untitled tabs should be handled in this case is silently saved and restored. I do occasionally (usually when computer being slow) see a "do you want to save" dialogue while I am closing Pulsar in those conditions but the dialogue is just a flash and disappears at the same time the main window closes. It does not reappear upon opening Pulsar but the tabs have been restored. This leads me to believe Pulsar always shows that dialogue but closes it as soon as the tab is automatically saved. I think you may be right that KDE is interfering somehow as I expect programmatically closing that window is dependant on the Window Manager. I am using Xfce4 here, which may explain why I can't recreate the issue. Sorry I have no solutions but hopefully I might have provided some clues :) I'll see if I can find the related code. |
Thanks for the input. "start Pulsar in a folder": I always use the CLI to start my editors. So I run |
Just tested on clean Pulsar install and With that project folder open, for me multiple untitled tabs are saved and restored silently. Opening with just Some interesting comments in these commits, but they are pretty old so not sure how relevant. f0448ba, 0f6eadc Gives some idea of what code is involved though, but I'm afraid I don't understand it enough to be able to dig much deeper. |
In you original report it sounds like you only have 1 untitled tab, but see 4 dialogues. Is that correct? Also, could you confirm if this is also repeatable on the final build of Atom? |
yes to both |
Thanks in advance for your bug report!
What's your issue?
When closing an editor with an unsaved text tab it will show 4 "do you want to save them" alerts when opening the editor again:
![Screenshot_20230105_174759](https://user-images.githubusercontent.com/4334997/210835162-9bc9974b-732c-4f41-9738-e43dbaccc35f.png)
those are normally stacked on top and sometimes in the wrong order so you can click the visible item to cancel it. You'll have to drag the windows away to find the latest one (that might be a KDE issue). But it should only show one alert!
Which OS/Browser/Version does this happen on?
Fedora Linux 37
Pulsar : 1.100.2022122507
Electron: 12.2.3
Chrome : 89.0.4389.128
Node : 14.16.0
Steps to Reproduce/Additional Details:
The text was updated successfully, but these errors were encountered: