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

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



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

The Finish button is now shown on the final page, and the final page
displays confirmation that a pool was stopped.
---
 src/virtManagerTui/startpool.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/virtManagerTui/startpool.py b/src/virtManagerTui/startpool.py
index ccd969a..c0f3d03 100644
--- a/src/virtManagerTui/startpool.py
+++ b/src/virtManagerTui/startpool.py
@@ -37,10 +37,6 @@ class StartStoragePoolConfigScreen(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 StartStoragePoolConfigScreen(StorageListConfigScreen):
     def process_input(self, page):
         if page is LIST_POOLS_PAGE:
             self.get_libvirt().create_storage_pool(self.get_selected_pool())
-            self.set_finished()
 
     def get_final_page(self, screen):
         ignore = screen
+        self.set_finished()
         return [Label("Storage pool started: %s" % self.get_selected_pool())]
 
 def StartStoragePool():
-- 
1.7.6


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