mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 10:43:48 +02:00
tidy up
This commit is contained in:
@@ -107,6 +107,21 @@ export const useUiStore = defineStore('Ui', () => {
|
||||
dialogCrumbs.value = [];
|
||||
}
|
||||
|
||||
function openDialog({
|
||||
type,
|
||||
id,
|
||||
label = '',
|
||||
skipBreadcrumb = false,
|
||||
hadActiveDialog = false
|
||||
}) {
|
||||
if (!hadActiveDialog) {
|
||||
clearDialogCrumbs();
|
||||
}
|
||||
if (!skipBreadcrumb) {
|
||||
pushDialogCrumb(type, id, label);
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure file drops outside of the screenshot manager don't navigate to the file path dropped.
|
||||
// This issue persists on prompts created with prompt(), unfortunately. Not sure how to fix that.
|
||||
document.body.addEventListener('drop', function (e) {
|
||||
@@ -191,6 +206,7 @@ export const useUiStore = defineStore('Ui', () => {
|
||||
pushDialogCrumb,
|
||||
setDialogCrumbLabel,
|
||||
jumpDialogCrumb,
|
||||
clearDialogCrumbs
|
||||
clearDialogCrumbs,
|
||||
openDialog
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user