mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
connect set_priv in file selection dialog
This commit is contained in:
parent
cec8cef864
commit
afa8f88292
@ -869,5 +869,4 @@ class Manager:
|
||||
return deluge_core.set_flp(unique_ID, int(num))
|
||||
|
||||
def set_priv(self, unique_ID, on_off):
|
||||
print unique_ID, on_off
|
||||
return deluge_core.set_flp(unique_ID, on_off)
|
||||
|
@ -186,11 +186,15 @@ class FilesDlg:
|
||||
self.files_for_dialog.use_unique_id(unique_id)
|
||||
self.files_for_dialog.file_view_actions(self.file_view)
|
||||
self.files_for_dialog.prepare_store()
|
||||
#clear private setting
|
||||
self.glade.get_widget("chk_setpriv").set_active(False)
|
||||
self.dialog.show()
|
||||
r = self.dialog.run()
|
||||
self.dialog.hide()
|
||||
self.files_for_dialog.remove_columns()
|
||||
self.files_for_dialog.clear_file_store()
|
||||
if(self.glade.get_widget("chk_setpriv").get_active()):
|
||||
self.manager.set_priv(unique_id, True)
|
||||
return r
|
||||
|
||||
class PluginDlg:
|
||||
|
Loading…
x
Reference in New Issue
Block a user