|
|
@ -126,13 +126,12 @@ class VanillaWindow(Adw.ApplicationWindow):
|
|
|
|
self.__view_done.set_result(result)
|
|
|
|
self.__view_done.set_result(result)
|
|
|
|
self.next()
|
|
|
|
self.next()
|
|
|
|
|
|
|
|
|
|
|
|
cur_index = self.carousel.get_position()
|
|
|
|
|
|
|
|
page = self.carousel.get_nth_page(cur_index)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pages_check = [self.__view_done]
|
|
|
|
pages_check = [self.__view_done]
|
|
|
|
if self.__init_mode == 0:
|
|
|
|
if self.__init_mode == 0:
|
|
|
|
pages_check.append(self.__view_progress)
|
|
|
|
pages_check.append(self.__view_progress)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cur_index = self.carousel.get_position()
|
|
|
|
|
|
|
|
page = self.carousel.get_nth_page(cur_index)
|
|
|
|
if page not in pages_check:
|
|
|
|
if page not in pages_check:
|
|
|
|
self.btn_back.set_visible(cur_index != 0.0)
|
|
|
|
self.btn_back.set_visible(cur_index != 0.0)
|
|
|
|
self.carousel_indicator_dots.set_visible(cur_index != 0.0)
|
|
|
|
self.carousel_indicator_dots.set_visible(cur_index != 0.0)
|
|
|
@ -160,7 +159,7 @@ class VanillaWindow(Adw.ApplicationWindow):
|
|
|
|
# run the process in a thread
|
|
|
|
# run the process in a thread
|
|
|
|
RunAsync(process, on_done)
|
|
|
|
RunAsync(process, on_done)
|
|
|
|
|
|
|
|
|
|
|
|
def next(self, result: bool=None, *args):
|
|
|
|
def next(self, widget: Gtk.Widget=None, result: bool=None, *args):
|
|
|
|
if result is not None:
|
|
|
|
if result is not None:
|
|
|
|
self.__last_result = result
|
|
|
|
self.__last_result = result
|
|
|
|
|
|
|
|
|
|
|
|