BetterFolders: Fix FolderItem
This commit is contained in:
parent
26dfa1308c
commit
24711e611a
1 changed files with 8 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ type FolderMentionProps = {
|
|||
export const ExpandedGuildFolderStore = findStoreLazy("ExpandedGuildFolderStore");
|
||||
export const SortedGuildStore = findStoreLazy("SortedGuildStore");
|
||||
const FolderUtils = findByPropsLazy("move", "toggleGuildFolderExpand");
|
||||
const FolderItem = findComponentByCodeLazy("folderButtonContent", "onHoverChange", "treeItemProps");
|
||||
const FolderItem = findComponentByCodeLazy("FolderItem", "onExpandCollapse", "folderButtonSize");
|
||||
|
||||
const MAX_TREE_FILTER_DEPTH = 1000;
|
||||
let dispatchingFoldersClose = false;
|
||||
|
|
@ -529,6 +529,13 @@ export default definePlugin({
|
|||
match: /`transitionTo - Transitioning to \$\{\i\}`\);/,
|
||||
replace: "$&$self.handleRouteNavigation(arguments[0]);"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: ".getCompatibleGuildFolders())",
|
||||
replacement: {
|
||||
match: /\i:\(\)=>\i(?=.*?\.FOLDER_ITEM_ANIMATION_DURATION.{0,10}\.animated\)\(\i\.\i\),(\i))/,
|
||||
replace: "$&,FolderItem:()=>$1"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue