mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +02:00
change whats new menu item to show latest whats new dialog instead of change log
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user