mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 18:23:47 +02:00
Display All Friends When Grouped by Instance (#1119)
This commit is contained in:
33
src/app.js
33
src/app.js
@@ -23309,20 +23309,12 @@ console.log(`isLinux: ${LINUX}`);
|
||||
|
||||
// - SidebarGroupByInstance
|
||||
|
||||
$app.methods.handleSwitchGroupByInstance = async function () {
|
||||
this.isSidebarGroupByInstance = !this.isSidebarGroupByInstance;
|
||||
await configRepository.setBool(
|
||||
'VRCX_sidebarGroupByInstance',
|
||||
this.isSidebarGroupByInstance
|
||||
);
|
||||
};
|
||||
|
||||
$app.data.isSidebarGroupByInstance = await configRepository.getBool(
|
||||
'VRCX_sidebarGroupByInstance',
|
||||
true
|
||||
);
|
||||
|
||||
$app.methods.handleSwitchGroupByInstance = function () {
|
||||
$app.methods.toggleGroupByInstance = function () {
|
||||
this.isSidebarGroupByInstance = !this.isSidebarGroupByInstance;
|
||||
configRepository.setBool(
|
||||
'VRCX_sidebarGroupByInstance',
|
||||
@@ -23330,6 +23322,19 @@ console.log(`isLinux: ${LINUX}`);
|
||||
);
|
||||
};
|
||||
|
||||
$app.data.isHideFriendsInSameInstance = await configRepository.getBool(
|
||||
'VRCX_hideFriendsInSameInstance',
|
||||
false
|
||||
);
|
||||
|
||||
$app.methods.toggleHideFriendsInSameInstance = function () {
|
||||
this.isHideFriendsInSameInstance = !this.isHideFriendsInSameInstance;
|
||||
configRepository.setBool(
|
||||
'VRCX_hideFriendsInSameInstance',
|
||||
this.isHideFriendsInSameInstance
|
||||
);
|
||||
};
|
||||
|
||||
$app.data.isSidebarGroupByInstanceCollapsed =
|
||||
await configRepository.getBool(
|
||||
'VRCX_sidebarGroupByInstanceCollapsed',
|
||||
@@ -23374,7 +23379,10 @@ console.log(`isLinux: ${LINUX}`);
|
||||
};
|
||||
|
||||
$app.computed.onlineFriendsByGroupStatus = function () {
|
||||
if (!this.isSidebarGroupByInstance) {
|
||||
if (
|
||||
!this.isSidebarGroupByInstance ||
|
||||
(this.isSidebarGroupByInstance && !this.isHideFriendsInSameInstance)
|
||||
) {
|
||||
return this.onlineFriends;
|
||||
}
|
||||
|
||||
@@ -23390,7 +23398,10 @@ console.log(`isLinux: ${LINUX}`);
|
||||
};
|
||||
|
||||
$app.computed.vipFriendsByGroupStatus = function () {
|
||||
if (!this.isSidebarGroupByInstance) {
|
||||
if (
|
||||
!this.isSidebarGroupByInstance ||
|
||||
(this.isSidebarGroupByInstance && !this.isHideFriendsInSameInstance)
|
||||
) {
|
||||
return this.vipFriends;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user