change whats new menu item to show latest whats new dialog instead of change log

This commit is contained in:
pa
2026-03-23 13:10:06 +09:00
parent 3e9bff2f1b
commit a05a17879c
4 changed files with 53 additions and 8 deletions
+21
View File
@@ -6,6 +6,7 @@ import { useI18n } from 'vue-i18n';
import { logWebRequest } from '../services/appConfig';
import { branches } from '../shared/constants';
import {
getLatestWhatsNewRelease,
getWhatsNewRelease,
normalizeReleaseVersion
} from '../shared/constants/whatsNewReleases';
@@ -204,6 +205,25 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
return true;
}
/**
* @returns {boolean}
*/
function showLatestWhatsNewDialog() {
const release = getLatestWhatsNewRelease();
if (!release) {
return false;
}
whatsNewDialog.value = {
visible: true,
titleKey: release.titleKey,
items: release.items.map((item) => ({ ...item }))
};
return true;
}
function closeWhatsNewDialog() {
whatsNewDialog.value.visible = false;
}
@@ -533,6 +553,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
setBranch,
showWhatsNewDialog,
showLatestWhatsNewDialog,
closeWhatsNewDialog,
openChangeLogDialogOnly,
checkForVRCXUpdate,