Close multiple instances loses settings
Posted: Sun Jan 02, 2011 7:24 pm
With all Explorer++ settings, you have to be careful when you use multiple instances, since only settings from the last one you close gets saved! It would be good if there was a way to share persistent settings changes between all instances, so you don't lose data reguardless of the order you close them.
Example (how to reproduce):
* Open one instance of Explorer++.
* Open a second instance of Explorer++.
* Bookmark a tab in the second instance.
* Close the second instance.
* Close the first instance.
* Open Explorer++.
* Your bookmark has been deleted!
It happens with both normal and portable mode.
Maybe we could use shared memory or some other IPC mechanism like messages. When you change settings in one instance, it can send that change to all other instances. It would be good if the mechanism is bidirectional, since it would be easier to get information from all windows (eg for session saving).
Another way could be to make it so in multiple instance mode, there is still only 1 exe process, but multiple windows. That way the settings can easily be shared and they wont overwrite eachother when they close. One disadvantage with that is if one window crashes, they all come down. It might also be much harder to make that kind of change if the code assumes there is only 1 main window.
Example (how to reproduce):
* Open one instance of Explorer++.
* Open a second instance of Explorer++.
* Bookmark a tab in the second instance.
* Close the second instance.
* Close the first instance.
* Open Explorer++.
* Your bookmark has been deleted!
It happens with both normal and portable mode.
Maybe we could use shared memory or some other IPC mechanism like messages. When you change settings in one instance, it can send that change to all other instances. It would be good if the mechanism is bidirectional, since it would be easier to get information from all windows (eg for session saving).
Another way could be to make it so in multiple instance mode, there is still only 1 exe process, but multiple windows. That way the settings can easily be shared and they wont overwrite eachother when they close. One disadvantage with that is if one window crashes, they all come down. It might also be much harder to make that kind of change if the code assumes there is only 1 main window.