aidenlx / alx-folder-note

Add description, summary, and more info to folders with folder notes.
MIT License
250 stars 14 forks source link

Folders not contracting after converted to Folder Note #90

Open Mikhail-H opened 1 year ago

Mikhail-H commented 1 year ago

Double clicking on Folder Name, shows the content of the folder note content, but does not contract the folder.

'Expand Folder on Click' option has no effect.

If 'Hide Folder Note' from File Explore is off, focus moves to the file, but folder does not contract.

Deleting Folder Notes allows the Folder to contract and expand normally.

InflowON commented 8 months ago

found the same thing, this fixes it, main.js

      if (plugin.settings.expandFolderOnClick && item.collapsed)
        await item.setCollapsed(false);

to


      if (plugin.settings.expandFolderOnClick)
        await item.setCollapsed(!item.collapsed);