[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 9/9] Fixed the Finish button on the stop pool command.



From: "Darryl L. Pierce" <dpierce redhat com>

The Finish button is now displayed on the last page where the stopping
is confirmed to the user.
---
 src/virtManagerTui/stoppool.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/virtManagerTui/stoppool.py b/src/virtManagerTui/stoppool.py
index d9277fa..766f3f3 100644
--- a/src/virtManagerTui/stoppool.py
+++ b/src/virtManagerTui/stoppool.py
@@ -37,10 +37,6 @@ class StopStoragePoolConfigScreen(StorageListConfigScreen):
     def page_has_next(self, page):
         return page is LIST_POOLS_PAGE and self.has_selectable_pools()
 
-    def page_has_back(self, page):
-        ignore = page
-        return False
-
     def page_has_finish(self, page):
         return page is FINAL_PAGE
 
@@ -55,10 +51,10 @@ class StopStoragePoolConfigScreen(StorageListConfigScreen):
     def process_input(self, page):
         if page is LIST_POOLS_PAGE:
             self.get_libvirt().destroy_storage_pool(self.get_selected_pool())
-            self.set_finished()
 
     def get_final_page(self, screen):
         ignore = screen
+        self.set_finished()
         return [Label("Storage pool stopped: %s" % self.get_selected_pool())]
 
 def StopStoragePool():
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]