BetterFolders: Fix Close all not working (#808)

This commit is contained in:
Đỗ Văn Hoài Tuân 2023-04-05 18:02:53 -07:00 committed by GitHub
parent c9fd404012
commit 2e6c5eacf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -67,7 +67,7 @@ const settings = definePluginSettings({
export default definePlugin({
name: "BetterFolders",
description: "Shows server folders on dedicated sidebar and adds folder related improvements",
authors: [Devs.juby],
authors: [Devs.juby, Devs.AutumnVN],
patches: [
{
find: '("guildsnav")',
@ -122,7 +122,7 @@ export default definePlugin({
settings,
start() {
const getGuildFolder = (id: string) => GuildFolderStore.guildFolders.find(f => f.guildIds.includes(id));
const getGuildFolder = (id: string) => GuildFolderStore.getGuildFolders().find(f => f.guildIds.includes(id));
FluxDispatcher.subscribe("CHANNEL_SELECT", this.onSwitch = data => {
if (!settings.store.closeAllFolders && !settings.store.forceOpen)

View file

@ -245,5 +245,9 @@ export const Devs = /* #__PURE__*/ Object.freeze({
Dziurwa: {
name: "Dziurwa",
id: 787017887877169173n
},
AutumnVN: {
name: "AutumnVN",
id: 393694671383166998n
}
});