Skip to content

Commit

Permalink
filemanager: fix issue caused by treating selected_files like a GObje…
Browse files Browse the repository at this point in the history
…ct property
  • Loading branch information
knuxify committed Jun 10, 2023
1 parent 58f8b59 commit 1ebc36e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def _load_files(self, paths, mode=1):
GLib.idle_add(self.refresh_state)
if mode == self.LOAD_INSERT:
if len(self.selected_files) < 2 and first_file:
GLib.idle_add(self.set_property, 'selected_files', [first_file], priority=GLib.PRIORITY_HIGH_IDLE)
self.selected_files = [first_file]
GLib.idle_add(self.emit, 'selection-changed', priority=GLib.PRIORITY_HIGH_IDLE)
GLib.idle_add(self.emit, 'selection-override')
else:
GLib.idle_add(self.emit, 'select-first')
Expand Down

0 comments on commit 1ebc36e

Please sign in to comment.