From 5ca8207c8704690fd518b3acb3a28063ce412fbd Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Tue, 12 Feb 2008 23:34:58 +0000 Subject: r771@Devoty: necoro | 2008-02-13 00:34:42 +0100 fixes --- portato/gui/gtk/windows.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'portato/gui/gtk/windows.py') diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index ceefe0c..19dbfff 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -1616,15 +1616,10 @@ class MainWindow (Window): store, it = sel.get_selected() if it: package = store.get_value(it, 0) - if not self.cfg.get_local(package, "oneshot"): - set = True - else: - set = False + set = (package not in self.queue.oneshotmerge) - self.cfg.set_local(package, "oneshot", set) self.queue.append(package, update = True, oneshot = set, forceUpdate = True) - def cb_pause_emerge (self, curr): def pause (cb): self.emergePaused = cb.get_active() -- cgit v1.2.3-70-g09d2