[Pkg-privacy-commits] [tails-installer] 09/34: Empty the text log when selecting a different operation mode.
anonym
anonym-tails-guest at moszumanska.debian.org
Mon Jan 22 14:05:31 UTC 2018
This is an automated email from the git hooks/post-receive script.
anonym-tails-guest pushed a commit to branch tails/master
in repository tails-installer.
commit 8a1858017e90fe1dd63d1083ea3612e8f9702da7
Author: intrigeri <intrigeri at boum.org>
Date: Sat Jan 20 10:55:32 2018 +0000
Empty the text log when selecting a different operation mode.
---
tails_installer/gui.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tails_installer/gui.py b/tails_installer/gui.py
index 4a86204..29c1d02 100755
--- a/tails_installer/gui.py
+++ b/tails_installer/gui.py
@@ -424,6 +424,8 @@ class TailsInstallerWindow(Gtk.ApplicationWindow):
elif active_radio.get_label() == "Use a downloaded Tails ISO image":
self.opts.clone = False
self.__filechooserbutton_source_file.set_sensitive(True)
+ # previous error messages may be invalid now
+ self.clear_log()
self.populate_devices()
def on_force_reinstall_clicked(self, button):
@@ -493,6 +495,10 @@ class TailsInstallerWindow(Gtk.ApplicationWindow):
self.__label_infobar_title.set_text("")
self.__label_infobar_details.set_text("")
+ def clear_log(self):
+ text_buffer = self.__textview_log.get_buffer()
+ text_buffer.set_text('')
+
def append_to_log(self, text):
if not text.endswith('\n'):
text = text + '\n'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list