diff options
-rw-r--r-- | module/gui/MainWindow.py | 8 | ||||
-rwxr-xr-x | module/network/Request.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py index 103dd8d7a..c0fe6e804 100644 --- a/module/gui/MainWindow.py +++ b/module/gui/MainWindow.py @@ -455,8 +455,8 @@ class MainWindow(QMainWindow): self.queueContext.buttons["abort"].setEnabled(False) if isinstance(item, Package): self.queueContext.index = i - self.queueContext.buttons["remove"].setEnabled(True) - self.queueContext.buttons["restart"].setEnabled(True) + #self.queueContext.buttons["remove"].setEnabled(True) + #self.queueContext.buttons["restart"].setEnabled(True) self.queueContext.buttons["pull"].setEnabled(True) self.queueContext.buttons["edit"].setEnabled(True) self.queuePriorityMenu.setEnabled(True) @@ -468,8 +468,8 @@ class MainWindow(QMainWindow): self.collectorContext.buttons["restart"].setEnabled(True) else: self.queueContext.index = None - self.queueContext.buttons["remove"].setEnabled(False) - self.queueContext.buttons["restart"].setEnabled(False) + #self.queueContext.buttons["remove"].setEnabled(False) + #self.queueContext.buttons["restart"].setEnabled(False) self.queueContext.buttons["pull"].setEnabled(False) self.queueContext.buttons["edit"].setEnabled(False) self.queuePriorityMenu.setEnabled(False) diff --git a/module/network/Request.py b/module/network/Request.py index b281714a3..3a3cd0f41 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -376,8 +376,8 @@ class Request: def progress(self, dl_t, dl_d, up_t, up_d): if self.abort: return False - self.dl_arrived = int(dl_d) - self.dl_size = int(dl_t) + self.dl_arrived = int(dl_d)+self.offset + self.dl_size = int(dl_t)+self.offset def get_free_name(self, folder, file_name): file_count = 0 |