mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-08 09:33:59 +00:00
Invert Actions sort order so one has only one click to move all installed pugins to the top
This commit is contained in:
@@ -531,12 +531,12 @@ class PluginsOptionsPage(OptionsPage):
|
||||
if make_current:
|
||||
self.set_current_item(item)
|
||||
|
||||
actions_sort_score = 1
|
||||
actions_sort_score = 2
|
||||
if item.is_installed:
|
||||
if item.is_enabled:
|
||||
actions_sort_score = 3
|
||||
actions_sort_score = 0
|
||||
else:
|
||||
actions_sort_score = 2
|
||||
actions_sort_score = 1
|
||||
|
||||
item.setSortData(COLUMN_ACTIONS, actions_sort_score)
|
||||
item.setSortData(COLUMN_NAME, plugin.name.lower())
|
||||
|
||||
Reference in New Issue
Block a user