mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-21 15:53:50 +02:00
Refactored FilePicker (#1045)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user