mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix select avatar
This commit is contained in:
+9
-1
@@ -30,6 +30,7 @@ import { useUpdateLoopStore } from './updateLoop';
|
||||
import { useUserStore } from './user';
|
||||
import { useWorldStore } from './world';
|
||||
import { useI18n } from 'vue-i18n-bridge';
|
||||
import Noty from 'noty';
|
||||
|
||||
export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
const gameStore = useGameStore();
|
||||
@@ -617,7 +618,14 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
// Makes sure the window is focused
|
||||
shouldFocusWindow = true;
|
||||
} else {
|
||||
$app.selectAvatarWithoutConfirmation(avatarId);
|
||||
avatarStore
|
||||
.selectAvatarWithoutConfirmation(avatarId)
|
||||
.then(() => {
|
||||
new Noty({
|
||||
type: 'success',
|
||||
text: 'Avatar changed via launch command'
|
||||
}).show();
|
||||
});
|
||||
shouldFocusWindow = false;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user