Extension Manager Freezes on clicking 'details' button.

Inkscape Version

Windows 10 Inkscape 1.1 (c68e22c387, 2021-05-23)

Extension Manager 1.1 - beta ( 0.9.7 )

Steps to Replicate

  • open extension manager
  • click the 'Details' button in the 'Active Packages Page' with an extension in the list

What happened?

  • freezes the manager, exiting gives
\Users\xps\AppData\Roaming\inkscape\extensions\org.inkscape.inkman\inkman\gui\info.py", line 99, in load_widgets
    for fn in item.get_files(filters=("*.inx",)):
TypeError: get_files() got an unexpected keyword argument 'filters'

Proposed solution

I imported the 're' module and replaced some code at the end of info.py, it makes it work - I'm not sure if this is a correct fix.

if hasattr(item, 'get_files'):
            for fn in item.get_files(filters=("*.inx",)):
                self.inx.add([ExtensionTreeItem(fn, kind='lost-and-found')])

Replaced With

if hasattr(item, 'get_files'):
            # for fn in item.get_files(filters=("*.inx",)):
            
            for fn in item.get_files():
                if re.search('.inx', fn):
                    self.inx.add([ExtensionTreeItem(fn, kind='lost-and-found')])
Edited by Nathan Lee