diff options
author | Papoteur <papoteur@mageia.org> | 2020-01-20 21:06:00 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-01-20 21:06:00 +0100 |
commit | 55328b3bd5fa9e2c60cbe4a1666a19412f3d476d (patch) | |
tree | 607ccc660a5e612044812561118dc34db62e8651 /lib/isodumper.py | |
parent | a6a4a179be21c319d103ae00b48fd0378b1bb885 (diff) | |
download | isodumper-55328b3bd5fa9e2c60cbe4a1666a19412f3d476d.tar isodumper-55328b3bd5fa9e2c60cbe4a1666a19412f3d476d.tar.gz isodumper-55328b3bd5fa9e2c60cbe4a1666a19412f3d476d.tar.bz2 isodumper-55328b3bd5fa9e2c60cbe4a1666a19412f3d476d.tar.xz isodumper-55328b3bd5fa9e2c60cbe4a1666a19412f3d476d.zip |
Display error messages from doing persistence. Untick checkboxes when restoring.
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-x | lib/isodumper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 0766cc9..f66461f 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -211,7 +211,9 @@ class IsoDumper(object): self.progress.setValue(0) self.progress.setDisabled() self.refreshbt.setEnabled() + self.persistencecb.setChecked(False) self.persistencecb.setDisabled() + self.cryptcb.setChecked(False) self.cryptcb.setDisabled() self.cryptkey.setDisabled() @@ -348,7 +350,10 @@ class IsoDumper(object): self.logger(_("No key for encrypted partition provided. Adding the partition aborted.")) else: iface.do_persistence(target,"mgalive-persist",self.cryptkey.value()) - self.logger(_("Added encrypted persistent partition")) + if iface.state: + self.logger(_("Added encrypted persistent partition")) + else: + self.logger(iface.message) else: iface.do_persistence(target,"mgalive-persist", "") self.logger(_("Added persistent partition")) |