mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 01:33:51 +02:00
feat: add option to prioritize same instance friends in sidebar (#1238)
This commit is contained in:
@@ -81,6 +81,7 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
const navWidth = ref(240);
|
||||
const isSidebarGroupByInstance = ref(true);
|
||||
const isHideFriendsInSameInstance = ref(false);
|
||||
const isSameInstanceAboveFavorites = ref(false);
|
||||
const isSidebarDivideByFriendGroup = ref(false);
|
||||
const sidebarFavoriteGroups = ref([]);
|
||||
const sidebarFavoriteGroupOrder = ref([]);
|
||||
@@ -158,6 +159,7 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
navWidthConfig,
|
||||
isSidebarGroupByInstanceConfig,
|
||||
isHideFriendsInSameInstanceConfig,
|
||||
isSameInstanceAboveFavoritesConfig,
|
||||
isSidebarDivideByFriendGroupConfig,
|
||||
sidebarFavoriteGroupsConfig,
|
||||
sidebarFavoriteGroupOrderConfig,
|
||||
@@ -214,6 +216,10 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
'VRCX_hideFriendsInSameInstance',
|
||||
false
|
||||
),
|
||||
configRepository.getBool(
|
||||
'VRCX_sameInstanceAboveFavorites',
|
||||
false
|
||||
),
|
||||
configRepository.getBool(
|
||||
'VRCX_sidebarDivideByFriendGroup',
|
||||
true
|
||||
@@ -326,6 +332,8 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
isSidebarGroupByInstance.value = isSidebarGroupByInstanceConfig;
|
||||
isHideFriendsInSameInstance.value =
|
||||
isHideFriendsInSameInstanceConfig;
|
||||
isSameInstanceAboveFavorites.value =
|
||||
isSameInstanceAboveFavoritesConfig;
|
||||
isSidebarDivideByFriendGroup.value =
|
||||
isSidebarDivideByFriendGroupConfig;
|
||||
sidebarFavoriteGroups.value = JSON.parse(
|
||||
@@ -792,6 +800,17 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
isHideFriendsInSameInstance.value
|
||||
);
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function setIsSameInstanceAboveFavorites() {
|
||||
isSameInstanceAboveFavorites.value =
|
||||
!isSameInstanceAboveFavorites.value;
|
||||
configRepository.setBool(
|
||||
'VRCX_sameInstanceAboveFavorites',
|
||||
isSameInstanceAboveFavorites.value
|
||||
);
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -1134,6 +1153,7 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
navWidth,
|
||||
isSidebarGroupByInstance,
|
||||
isHideFriendsInSameInstance,
|
||||
isSameInstanceAboveFavorites,
|
||||
isSidebarDivideByFriendGroup,
|
||||
sidebarFavoriteGroups,
|
||||
sidebarFavoriteGroupOrder,
|
||||
@@ -1173,6 +1193,7 @@ export const useAppearanceSettingsStore = defineStore(
|
||||
setNavWidth,
|
||||
setIsSidebarGroupByInstance,
|
||||
setIsHideFriendsInSameInstance,
|
||||
setIsSameInstanceAboveFavorites,
|
||||
setIsSidebarDivideByFriendGroup,
|
||||
setSidebarFavoriteGroups,
|
||||
setSidebarFavoriteGroupOrder,
|
||||
|
||||
Reference in New Issue
Block a user