Permalink
Browse files

Set default priority for file priority dialog to 'Normal', added colors

  • Loading branch information...
1 parent 9194368 commit 361f84433985100545d2a3fd406fdee4891d8af3 @Asmageddon committed Jun 1, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 deluge/ui/console/modes/torrentdetail.py
@@ -579,10 +579,11 @@ def show_priority_popup(self, was_empty):
func = lambda idx, data, we=was_empty: self.do_priority(idx, data, we)
if self.marked:
self.popup = SelectablePopup(self,"Set File Priority", func)
- self.popup.add_line("_Do Not Download",data=deluge.common.FILE_PRIORITY["Do Not Download"])
+ self.popup.add_line("_Do Not Download",data=deluge.common.FILE_PRIORITY["Do Not Download"], foreground="red")
self.popup.add_line("_Normal Priority",data=deluge.common.FILE_PRIORITY["Normal Priority"])
- self.popup.add_line("_High Priority",data=deluge.common.FILE_PRIORITY["High Priority"])
- self.popup.add_line("H_ighest Priority",data=deluge.common.FILE_PRIORITY["Highest Priority"])
+ self.popup.add_line("_High Priority",data=deluge.common.FILE_PRIORITY["High Priority"], foreground="yellow")
+ self.popup.add_line("H_ighest Priority",data=deluge.common.FILE_PRIORITY["Highest Priority"], foreground="green")
+ self.popup._selected = 1
def __mark_unmark(self,idx):
"""

0 comments on commit 361f844

Please sign in to comment.