Fix Windows release follow-up review items

This commit is contained in:
2026-03-08 19:03:10 -07:00
parent 0e69162aea
commit 2770a58cbf
7 changed files with 91 additions and 27 deletions

View File

@@ -294,20 +294,23 @@ export function createFirstRunSetupService(deps: {
);
},
configureWindowsMpvShortcuts: async (preferences) => {
const nextState = writeState({
...readState(),
windowsMpvShortcutPreferences: {
startMenuEnabled: preferences.startMenuEnabled,
desktopEnabled: preferences.desktopEnabled,
},
});
if (!isWindows || !deps.applyWindowsMpvShortcuts) {
return refreshWithState(nextState, null);
return refreshWithState(
writeState({
...readState(),
windowsMpvShortcutPreferences: {
startMenuEnabled: preferences.startMenuEnabled,
desktopEnabled: preferences.desktopEnabled,
},
}),
null,
);
}
const result = await deps.applyWindowsMpvShortcuts(preferences);
const latestState = readState();
return refreshWithState(
writeState({
...readState(),
...latestState,
windowsMpvShortcutPreferences: {
startMenuEnabled: preferences.startMenuEnabled,
desktopEnabled: preferences.desktopEnabled,