connect set_priv in file selection dialog

This commit is contained in:
Marcos Pinto 2007-07-16 00:15:04 +00:00
parent cec8cef864
commit afa8f88292
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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: