HeidiSQL seems to remember the last connection you opened so it's selected (and parent folders expanded) when you get back to session manager. This is a great feature.
However, I have the impression that this value is saved to Windows registry only when you close the program. If you spend a while working with HeidiSQL and switching sessions you always get as default the last database session (even if you haven't connected to it a single time since you launched HeidiSQL).
May I suggest to enhance this? Not fully sure of the best algorithm but storing the value when you open a session looks like a good start.
Remember last used session
Sure, this is something I always wanted to enhance. Only that's quite tricky, at least when you have more than one HeidiSQL instances running.
Assuming you start instance #i1, connected to session #s1 and #s2. Now, start another instance, we call it #i2, and connect there to #s3 only. When you close #i2, and #i1 is still running, we need to save the last sessions when closing #i1, otherwise #i2 with its #s3 would win. So, saving at application exit is still valid, but I guess I just need to store the remembered sessions also when connecting and disconnecting.
Assuming you start instance #i1, connected to session #s1 and #s2. Now, start another instance, we call it #i2, and connect there to #s3 only. When you close #i2, and #i1 is still running, we need to save the last sessions when closing #i1, otherwise #i2 with its #s3 would win. So, saving at application exit is still valid, but I guess I just need to store the remembered sessions also when connecting and disconnecting.
In your scenario, see nothing wrong in getting #s3 next time. After all, it's the last session I started.
Another possibility would be to store sessions when you start and when you close them but that'd be more complicate because you don't necessarily close them one by one using the "Disconnect" button, you can simply close HeidiSQL while several options are open. But I think it's a good option too.
(BTW, the "Disconnect" button does not have a tooltip.)
Another possibility would be to store sessions when you start and when you close them but that'd be more complicate because you don't necessarily close them one by one using the "Disconnect" button, you can simply close HeidiSQL while several options are open. But I think it's a good option too.
(BTW, the "Disconnect" button does not have a tooltip.)
Code modification/commit
e639c4c
from ansgar.becker,
12 years ago,
revision 7.0.0.4339
Store last sessions also when connecting to an additional session, not only when closing the program. See http://www.heidisql.com/forum.php?t=12149
Please login to leave a reply, or register at first.