Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
505 stars 35 forks source link

Close Existing LogManager, If another one is called. #120

Open AziRizvi opened 7 months ago

AziRizvi commented 7 months ago

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?

Eisa01 commented 7 months ago

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

AziRizvi commented 7 months ago

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!!