From c17b6f2f3a2e6788efe7f6b4161ec6a24735bf2b Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 18 Apr 2025 22:29:54 +1000 Subject: [PATCH] Bug fixes --- src/app.js | 2 +- src/localization/zh-CN/en.json | 2 +- src/localization/zh-TW/en.json | 2 +- .../Settings/dialogs/LaunchOptionsDialog.vue | 8 ++++++-- .../OpenSourceSoftwareNoticeDialog.vue | 2 +- .../dialogs/ScreenshotMetadataDialog.vue | 2 -- .../Settings/dialogs/VRChatConfigDialog.vue | 20 +++++++++++++++---- 7 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/app.js b/src/app.js index 71234b78..fdae307e 100644 --- a/src/app.js +++ b/src/app.js @@ -13572,7 +13572,7 @@ console.log(`isLinux: ${LINUX}`); $app.methods.getVRChatCacheSize = async function () { this.VRChatCacheSizeLoading = true; - var totalCacheSize = 20; + var totalCacheSize = 30; this.VRChatTotalCacheSize = totalCacheSize; var usedCacheSize = await AssetBundleManager.GetCacheSize(); this.VRChatUsedCacheSize = (usedCacheSize / 1073741824).toFixed(2); diff --git a/src/localization/zh-CN/en.json b/src/localization/zh-CN/en.json index 9c8cffb5..fd07b844 100644 --- a/src/localization/zh-CN/en.json +++ b/src/localization/zh-CN/en.json @@ -1175,7 +1175,7 @@ "delete_cache": "删除缓存", "delete_old_cache": "从缓存中删除无效数据", "sweep_cache": "清理缓存", - "max_cache_size": "最大缓存大小 [GB](至少 20GB)", + "max_cache_size": "最大缓存大小 [GB](至少 30GB)", "cache_expiry_delay": "缓存保存时长 [天](至少 30 天)", "cache_directory": "缓存文件夹位置", "picture_directory": "截图文件夹位置", diff --git a/src/localization/zh-TW/en.json b/src/localization/zh-TW/en.json index fa3534a2..c6ab5450 100644 --- a/src/localization/zh-TW/en.json +++ b/src/localization/zh-TW/en.json @@ -1191,7 +1191,7 @@ "delete_cache": "刪除快取", "delete_old_cache": "從快取中刪除舊版本", "sweep_cache": "清理快取", - "max_cache_size": "最大快取大小 [GB] (最小 20GB)", + "max_cache_size": "最大快取大小 [GB] (最小 30GB)", "cache_expiry_delay": "快取保存時長 [日] (最小 30)", "cache_directory": "覆蓋快取資料夾位置", "picture_directory": "覆蓋圖片資料夾位置", diff --git a/src/views/Settings/dialogs/LaunchOptionsDialog.vue b/src/views/Settings/dialogs/LaunchOptionsDialog.vue index 5b09f8f3..c99e9e63 100644 --- a/src/views/Settings/dialogs/LaunchOptionsDialog.vue +++ b/src/views/Settings/dialogs/LaunchOptionsDialog.vue @@ -10,7 +10,10 @@ @close="closeDialog">
{{ t('dialog.launch_options.description') }}
- {{ t('dialog.launch_options.example') }} --fps=144 + {{ t('dialog.launch_options.example') }} + --fps=144 --enable-debug-gui --enable-sdk-log-levels --enable-udon-debug-logging +
@@ -71,6 +74,7 @@ defineProps({ isLaunchOptionsDialogVisible: { type: Boolean, + default: false, required: true } }); diff --git a/src/views/Settings/dialogs/OpenSourceSoftwareNoticeDialog.vue b/src/views/Settings/dialogs/OpenSourceSoftwareNoticeDialog.vue index c9a77e1c..ca24eb06 100644 --- a/src/views/Settings/dialogs/OpenSourceSoftwareNoticeDialog.vue +++ b/src/views/Settings/dialogs/OpenSourceSoftwareNoticeDialog.vue @@ -10,7 +10,7 @@ @mouseup.native="dialogMouseUp">
- {{ t('dialog.open_source.description') }} }} + {{ t('dialog.open_source.description') }}
diff --git a/src/views/Settings/dialogs/ScreenshotMetadataDialog.vue b/src/views/Settings/dialogs/ScreenshotMetadataDialog.vue index c0cceb83..37bfa737 100644 --- a/src/views/Settings/dialogs/ScreenshotMetadataDialog.vue +++ b/src/views/Settings/dialogs/ScreenshotMetadataDialog.vue @@ -98,7 +98,6 @@ v-if="screenshotMetadataDialog.metadata.world" :location="screenshotMetadataDialog.metadata.world.instanceId" :hint="screenshotMetadataDialog.metadata.world.name" /> -

-
diff --git a/src/views/Settings/dialogs/VRChatConfigDialog.vue b/src/views/Settings/dialogs/VRChatConfigDialog.vue index 9c3fbb4c..4926afff 100644 --- a/src/views/Settings/dialogs/VRChatConfigDialog.vue +++ b/src/views/Settings/dialogs/VRChatConfigDialog.vue @@ -157,10 +157,14 @@ {{ t('dialog.config_json.picture_sort_by_date') }} - + {{ t('dialog.config_json.disable_discord_presence') }}
@@ -330,19 +334,27 @@ } } + function refreshDialogValues() { + loading.value = true; + loading.value = false; + } + function setVRChatSpoutResolution(res) { VRChatConfigFile.value.camera_spout_res_height = res.height; VRChatConfigFile.value.camera_spout_res_width = res.width; + refreshDialogValues(); } function setVRChatCameraResolution(res) { VRChatConfigFile.value.camera_res_height = res.height; VRChatConfigFile.value.camera_res_width = res.width; + refreshDialogValues(); } function setVRChatScreenshotResolution(res) { VRChatConfigFile.value.screenshot_res_height = res.height; VRChatConfigFile.value.screenshot_res_width = res.width; + refreshDialogValues(); } function getVRChatCameraResolution() { @@ -398,9 +410,6 @@ if (config) { try { const parsedConfig = JSON.parse(config); - if (parsedConfig.picture_output_split_by_date === undefined) { - parsedConfig.picture_output_split_by_date = true; - } VRChatConfigFile.value = { ...VRChatConfigFile.value, ...parsedConfig }; } catch { $message({ @@ -410,6 +419,9 @@ throw new Error('Invalid JSON in config.json'); } } + if (typeof VRChatConfigFile.value.picture_output_split_by_date === 'undefined') { + VRChatConfigFile.value.picture_output_split_by_date = true; + } } function closeDialog() {