mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Fixed the Finish button on the start pool command.
The Finish button is now shown on the final page, and the final page displays confirmation that a pool was stopped.
This commit is contained in:
parent
5acc47f172
commit
2b5b8a8b35
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user