summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to 'portato')
-rw-r--r--portato/gui/gui_helper.py1
-rw-r--r--portato/gui/updater.py9
2 files changed, 5 insertions, 5 deletions
diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py
index 9c16892..28463a8 100644
--- a/portato/gui/gui_helper.py
+++ b/portato/gui/gui_helper.py
@@ -519,6 +519,7 @@ class EmergeQueue:
title = self.console.get_window_title()
if title != old_title:
self.title_update(title)
+ old_title = title
time.sleep(0.5)
if self.up:
diff --git a/portato/gui/updater.py b/portato/gui/updater.py
index e468691..f0d4c90 100644
--- a/portato/gui/updater.py
+++ b/portato/gui/updater.py
@@ -66,11 +66,10 @@ q
p1 = subprocess.Popen(["qlop", "--current", "--nocolor", "--quiet"], stdout = subprocess.PIPE)
this = subprocess.Popen(["sed", self.SED_EXP], stdout = subprocess.PIPE, stdin = p1.stdout).communicate()[0]
- if this:
- this = this.strip()
- if this != curr: # changed package
- curr = this
- self.remove(self.find(curr)) # remove it
+ if this: this = this.strip()
+ if this != curr: # changed package
+ curr and self.remove(self.find(curr)) # remove the previous
+ curr = this
time.sleep(2.0)