Ryochan7 / sc-controller

User-mode driver and GTK3 based GUI for Steam Controller
GNU General Public License v2.0
177 stars 23 forks source link

Importing profiles from Steam doesn't work #35

Closed Supreeeme closed 3 years ago

Supreeeme commented 3 years ago

Attempting to load profiles from Steam results in a blank list and these errors:

Traceback (most recent call last):
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/dialog.py", line 172, in on_btImportVdf_clicked
    self.next_page(grVdfImport)
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/dialog.py", line 116, in next_page
    self._page_selected(page)
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/dialog.py", line 125, in _page_selected
    getattr(self, hname)()
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/import_vdf.py", line 44, in on_grVdfImport_activated
    self.on_tvVdfProfiles_cursor_changed()
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/import_vdf.py", line 248, in on_tvVdfProfiles_cursor_changed
    filename = model.get_value(iter, 3)
TypeError: Argument 1 does not allow None as a value

Dragging and dropping a Steam profile works after fixing an error involving decode on a string. However, attempting to preview the profile (before applying it) results in these errors:

Traceback (most recent call last):
  File "/home/supreme/dev/scc-dev/scc/gui/importexport/import_vdf.py", line 309, in on_btDump_clicked
    filename = model.get_value(iter, 3)
TypeError: Argument 1 does not allow None as a value

Planning on looking at this myself this weekend.