Automatically closing non-locked tabs on exit

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pg111
Posts: 2
Joined: 06 Apr 2012 05:46

Automatically closing non-locked tabs on exit

Post by pg111 »

Hi everybody,

I apologize if my question may have been already asked.

I cannot find any setting that would allow me to have non-locked tabs automatically closed when exiting the program.

Is it possible to do so?

Many thanks in advance for any answer.

Cheers.

Patrick

klownboy
Posts: 4480
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Automatically closing non-locked tabs on exit

Post by klownboy »

Hi pg111,
This little script will close all unlocked tabs even if you are currently in a unlocked tab and then exit XYplorer. You could assign it to a Customized Toolbar button (CTB) or catalog item. I'd have to research a bit more to see if it could be run automatically on exit without the last line of code which does the exiting.

Code: Select all

    #352;                                //close all "other" unlocked tabs
      if (tab("get", "flags") == "") {   //close the "current" selected tab if it's unlocked        
       tab("close", 1) }
    exit                        //Saving depends on user setting in Configuration | Startup & Exit | Save settings on exit
Good luck,
Ken

pg111
Posts: 2
Joined: 06 Apr 2012 05:46

Re: Automatically closing non-locked tabs on exit

Post by pg111 »

Thank you so much, Ken, for your input. I will try it asap and let you know.

Cheers.

Patrick

Post Reply