From a06ae084db9cb8149d2c08c629e7966e09ca3083 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Thu, 20 May 2021 00:30:38 -0400 Subject: [PATCH] job_status: Cancel/Resume button corrections --- panels/job_status.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panels/job_status.py b/panels/job_status.py index dd9b3e92..abc79cde 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -521,16 +521,18 @@ class JobStatusPanel(ScreenPanel): self.labels['button_grid'].attach(self.labels['cancel'], 1, 0, 1, 1) self.labels['button_grid'].attach(self.labels['fine_tune'], 2, 0, 1, 1) self.labels['button_grid'].attach(self.labels['control'], 3, 0, 1, 1) + self.enable_button("pause","cancel") elif self.state == "paused": self.labels['button_grid'].attach(self.labels['resume'], 0, 0, 1, 1) self.labels['button_grid'].attach(self.labels['cancel'], 1, 0, 1, 1) self.labels['button_grid'].attach(self.labels['fine_tune'], 2, 0, 1, 1) self.labels['button_grid'].attach(self.labels['control'], 3, 0, 1, 1) + self.enable_button("resume","cancel") elif self.state == "cancelling": self.labels['button_grid'].attach(Gtk.Label(""), 0, 0, 1, 1) self.labels['button_grid'].attach(Gtk.Label(""), 1, 0, 1, 1) - self.labels['button_grid'].attach(self.labels['fine_tune'], 2, 0, 1, 1) - self.labels['button_grid'].attach(self.labels['control'], 3, 0, 1, 1) + self.labels['button_grid'].attach(self.labels['restart'], 2, 0, 1, 1) + self.labels['button_grid'].attach(self.labels['menu'], 3, 0, 1, 1) elif self.state == "error" or self.state == "complete" or self.state == "cancelled": self.labels['button_grid'].attach(Gtk.Label(""), 0, 0, 1, 1) self.labels['button_grid'].attach(Gtk.Label(""), 1, 0, 1, 1)