Hi’ everyone,
So, I’ll try to tackle things one after the other.
But let’s start with

and issues
———————————————————————————
☛ CTB Icon bug
Session Manager v6.51
I won’t post the whole script (will do when the problem is solved).Here’s the only change.
Replace:
Code: Select all
"_ChangeIcons"
global $GEN_Ini, $GEN_CurScript, $PRE_l_AvailSess;
With:
Code: Select all
"_ChangeIcons"
global $GEN_Ini, $GEN_CurScript, $GEN_AutoSave_Suffix, $PRE_CurSess, $PRE_l_AvailSess;
This will solve the issues of the ctb icon not correctly updated.
———————————————————————————
☛ CTB resetting session
autocart wrote: ↑13 May 2020 14:10Trying to invoke the button menu with the scripting command
button "ctb4", 1; [...] does not work.
I can’t reproduce…
As Ken mentioned, it could have been caused by an incorrect entry in the CTB… Or it sounds like you have the Alt key depressed while clicking (which is the default for reset).
So could you try (again) those and report what happens:
— Reset your mouse modifiers to default
— Create a new CTB using the snippet from the first page of this thread
———————————————————————————
☛ CTB slower than external
klownboy wrote: ↑13 May 2020 21:05Session Manager seems to run (i.e., display) recognizably faster if I run it from somewhere other than a CTB
I even tried on an old computer (with HDD and Windows antivirus running), but I can’t reproduce either…
Indeed there’s a check to see if the CTB has been changed/broken: a comparison is made between its index and the permanent variable $SM_CTBINDEX and to see if it’s really Session Manager button. But it doesn’t go further if they match. And this occurs whether you run the script from a CTB or not…
I’ll investigate.
———————————————————————————
☛ CTB quirks and glitches
mazot wrote: ↑13 May 2020 23:13
I have found that CTB's are convenient and fairly easy to use, (my own personal findings),the catalog is more
useful, to be more consistent in behavior (relatively speaking), to use.[...]
First, welcome and thanks for your feedback!
Regarding glitches, the only one I encounter from time to time is the slight offset of a CTB when the toolbar has been updated (and XY window moved, not sure exactly). It seems XY toolbar is not always refreshed properly.
Regarding the speed, I just tried to compare launching SM via CTB, Catalog, and AddressBar.
Here, the mouse cursor very quickly flashes with an hourglass before the menu is opened… But I just discovered that sometimes it doesn’t happen with the Catalog, indeed! The menu doesn’t seem to open faster (here), but it gives the impression that it fades in more than pops up after a small delay.
Then again, I use XYplorer from an SSD with no antivirus running, so I’ll investigate too!
———————————————————————————
☛ Feature request and wishes
I duly noted the ideas of a generic autosave, etc. And other ideas are welcome!
But I’ll focus on fixing the issues first and I’ll come back to enhancements later.
———————————————————————————
Have a nice day,
Flux