mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
change: simplify method
This commit is contained in:
1 parent
c839672f85
commit
2383f7d2aa
1 file changed
+2
-4
@@ -488,10 +488,8 @@ class Assistant(Gtk.Assistant):
|
|||||||
write_json(config, self.config_path)
|
write_json(config, self.config_path)
|
||||||
|
|
||||||
def get_final_page(self) -> int:
|
def get_final_page(self) -> int:
|
||||||
for page in range(0, self.get_n_pages()):
|
pages = self.get_n_pages()
|
||||||
child = self.get_nth_page(page)
|
return pages - 1
|
||||||
if child == self.page_completion:
|
|
||||||
return page
|
|
||||||
|
|
||||||
def _advance_page(self, index: int) -> int:
|
def _advance_page(self, index: int) -> int:
|
||||||
page = self.get_nth_page(index)
|
page = self.get_nth_page(index)
|
||||||
|
|||||||
Reference in new issue
Block a user