mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
change: simplify method
This commit is contained in:
parent
c839672f85
commit
2383f7d2aa
@ -488,10 +488,8 @@ class Assistant(Gtk.Assistant):
|
||||
write_json(config, self.config_path)
|
||||
|
||||
def get_final_page(self) -> int:
|
||||
for page in range(0, self.get_n_pages()):
|
||||
child = self.get_nth_page(page)
|
||||
if child == self.page_completion:
|
||||
return page
|
||||
pages = self.get_n_pages()
|
||||
return pages - 1
|
||||
|
||||
def _advance_page(self, index: int) -> int:
|
||||
page = self.get_nth_page(index)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user