Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 27e282f

Browse files
committed
micro optimizations
1 parent 9858ac6 commit 27e282f

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/src/store/prefix.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@ export default {
3535
let mangoHud = window.app.getMangoHud();
3636
let vkBasalt = window.app.getVkBasalt();
3737

38-
let result = {
39-
arch: prefix.getWineArch(),
40-
windows_version: prefix.getWindowsVersion(),
41-
sandbox: prefix.isSandbox(),
42-
dxvk: prefix.isDxvk(),
43-
dxvk_version: dxvk.getLocalVersion(),
44-
prefix,
45-
};
46-
4738
return promise
4839
.then(() => dxvk.update())
4940
.then(() => fixes.update())
@@ -52,7 +43,14 @@ export default {
5243
.then(() => winePrefix.updatePulse())
5344
.then(() => winePrefix.updateCsmt())
5445
.then(() => winePrefix.updateWindowsVersion())
55-
.then(() => commit(action.LOAD, result));
46+
.then(() => commit(action.LOAD, {
47+
arch: prefix.getWineArch(),
48+
windows_version: prefix.getWindowsVersion(),
49+
sandbox: prefix.isSandbox(),
50+
dxvk: prefix.isDxvk(),
51+
dxvk_version: dxvk.getLocalVersion(),
52+
prefix,
53+
}));
5654
},
5755
[action.SAVE]({ commit, dispatch }, { prefix, item }) {
5856
prefix.setFlatConfig(item);

src/src/views/Home.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
mounted() {
2727
this.$store.dispatch(action.get('games').LOAD);
28+
this.$store.dispatch(action.get('prefix').LOAD);
2829
},
2930
methods: {},
3031
}

0 commit comments

Comments
 (0)