diff --git a/src/core.py b/src/core.py index 29cd70215..70e447600 100644 --- a/src/core.py +++ b/src/core.py @@ -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) diff --git a/src/dialogs.py b/src/dialogs.py index 160f67ebd..0d002c198 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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: