mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 03:33:47 +02:00
Fix VIP filter at startup for feed and gameLog
This commit is contained in:
@@ -93,11 +93,10 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
state.gameLogTable.filter = JSON.parse(
|
||||
await configRepository.getString('VRCX_gameLogTableFilters', '[]')
|
||||
);
|
||||
// gameLog loads before favorites
|
||||
// await configRepository.getBool(
|
||||
// 'VRCX_gameLogTableVIPFilter',
|
||||
// false
|
||||
// );
|
||||
state.gameLogTable.vip = await configRepository.getBool(
|
||||
'VRCX_gameLogTableVIPFilter',
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
init();
|
||||
@@ -149,6 +148,15 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
{ flush: 'sync' }
|
||||
);
|
||||
|
||||
watch(
|
||||
() => watchState.isFavoritesLoaded,
|
||||
(isFavoritesLoaded) => {
|
||||
if (isFavoritesLoaded && state.gameLogTable.vip) {
|
||||
gameLogTableLookup(); // re-apply VIP filter after friends are loaded
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => watchState.isFriendsLoaded,
|
||||
(isFriendsLoaded) => {
|
||||
|
||||
Reference in New Issue
Block a user