mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

Close Existing LogManager, If another one is called.

Open AziRizvi opened this issue 1 year ago • 2 comments

If a LogManager is open, for example if History LogManager is open and I opened either the Clipboard or the Bookmarks, the script should check if a log manager is already active/open, if it is, then close it and activate the one that was called, this will prevent putting the LogManagers on top of each other and also one won't have to first press the keybind to close an existing LogManager and then pressing the keybind for the one that you wanted to open.

So basically, e.g if history is open and I opened bookmarks/clipboard, then close whichever one was active first automatically and then open the one whose keybind was pressed, same with vice-versa situations among all of them.

Here's a gif.. they get stacked on top of each other.. when opened one after the other.

mpv_3dhpLolepo

Since SmartCopyPaste_II, SimpleHistory and SimpleBookmark share the same LogManager code, this should technically be possible?

AziRizvi avatar Dec 04 '23 00:12 AziRizvi

Should be technically possible, this is a good scenario. Will keep issue open and plan it for the next update

Eisa01 avatar Dec 04 '23 01:12 Eisa01

Should be technically possible, this is a good scenario. Will keep issue open and plan it for the next update

Great! I'm looking forward to it!!

AziRizvi avatar Dec 04 '23 01:12 AziRizvi