mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 21:02:06 -04:00
fix(launcher): release DankLauncherV2 resources after close (#1692)
* fix(launcher): release DankLauncherV2 resources after close * launcher: make unload on close optional --------- Co-authored-by: bbedward <bbedward@gmail.com>
This commit is contained in:
@@ -454,6 +454,13 @@ Singleton {
|
||||
dankLauncherV2Modal?.hide();
|
||||
}
|
||||
|
||||
function unloadDankLauncherV2() {
|
||||
if (dankLauncherV2ModalLoader) {
|
||||
dankLauncherV2Modal = null;
|
||||
dankLauncherV2ModalLoader.active = false;
|
||||
}
|
||||
}
|
||||
|
||||
function toggleDankLauncherV2() {
|
||||
if (dankLauncherV2Modal) {
|
||||
dankLauncherV2Modal.toggle();
|
||||
|
||||
Reference in New Issue
Block a user