Update ServerFolders.plugin.js

This commit is contained in:
Mirco Wittrien 2020-07-21 09:58:39 +02:00 committed by GitHub
parent 79e47e7a8f
commit 06256d3a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -58,13 +58,13 @@ var ServerFolders = (_ => {
onClick: event => {
if (BDFDB.InternalData.pressedKeys.includes(46)) {
BDFDB.ListenerUtils.stopEvent(event);
_this.removeGuildFromFolder(folderId, guildId);
_this.removeGuildFromFolder(folder.folderId, guildId);
}
else {
if (settings.closeAllFolders) {
for (let openFolderId of BDFDB.LibraryModules.FolderUtils.getExpandedFolders()) if (openFolderId != folderId || !settings.forceOpenFolder) BDFDB.LibraryModules.GuildUtils.toggleGuildFolderExpand(openFolderId);
for (let openFolderId of BDFDB.LibraryModules.FolderUtils.getExpandedFolders()) if (openFolderId != folder.folderId || !settings.forceOpenFolder) BDFDB.LibraryModules.GuildUtils.toggleGuildFolderExpand(openFolderId);
}
else if (settings.closeTheFolder && !settings.forceOpenFolder && BDFDB.LibraryModules.FolderUtils.isFolderExpanded(folderId)) BDFDB.LibraryModules.GuildUtils.toggleGuildFolderExpand(folderId);
else if (settings.closeTheFolder && !settings.forceOpenFolder && BDFDB.LibraryModules.FolderUtils.isFolderExpanded(folder.folderId)) BDFDB.LibraryModules.GuildUtils.toggleGuildFolderExpand(folder.folderId);
else BDFDB.ReactUtils.forceUpdate(this);
}
},
@ -316,7 +316,7 @@ var ServerFolders = (_ => {
return class ServerFolders {
getName () {return "ServerFolders";}
getVersion () {return "6.8.3";}
getVersion () {return "6.8.4";}
getAuthor () {return "DevilBro";}
@ -324,7 +324,7 @@ var ServerFolders = (_ => {
constructor () {
this.changelog = {
"fixed":[["Empty invisible folders","Fixed an issue where an open empty invisible folder would force the extra column to stay open forever, why the fuck discord are there empty invisible folders"]]
"fixed":[["Empty invisible folders","Fixed an issue where an open empty invisible folder would force the extra column to stay open forever, why the fuck discord are there empty invisible folders"], ["Switching", "Clicking a server in a folder opens the server again"]]
};
this.patchedModules = {
@ -1684,4 +1684,4 @@ var ServerFolders = (_ => {
}
}
}
})();
})();