Refactored FilePicker (#1045)

This commit is contained in:
Thomas
2024-12-27 01:17:02 +00:00
committed by GitHub
parent f0cd64c3aa
commit 5d79c5615e
7 changed files with 71 additions and 85 deletions

View File

@@ -16344,6 +16344,16 @@ speechSynthesis.getVoices();
}
};
$app.methods.getAndDisplayScreenshotFromFile = async function () {
var filePath = await AppApi.OpenFileSelectorDialog(await AppApi.GetVRChatPhotosLocation(), ".png", "PNG Files (*.png)|*.png");
if (filePath === "") {
return;
}
this.screenshotMetadataResetSearch();
this.getAndDisplayScreenshot(filePath);
};
$app.methods.getAndDisplayScreenshot = function (
path,
needsCarouselFiles = true