Skip to content

Commit

Permalink
Android UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanbobrowski committed Sep 6, 2024
1 parent 6f59abe commit 0607d40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blog2epub/blog2epub_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,6 @@ def _get_params_row(self) -> MDBoxLayout:
)
self.skip_entry.bind(text=self._validate_skip)
params_row.add_widget(self.skip_entry)
if platform != "android":
self.download_button_container = params_row
params_row.add_widget(self.download_button)
return params_row

def _validate_limit(self, input_widget, text):
Expand Down Expand Up @@ -558,11 +555,13 @@ def cancel_download(self, *args, **kwargs):
self.ebook_data = self.blog2epub = None
self._update_tab_generate()

@mainthread
def _disable_download_button(self):
self.interface.print("Downloading...")
self.download_button_container.remove_widget(self.download_button)
self.download_button_container.add_widget(self.cancel_button)

@mainthread
def _enable_download_button(self):
self.download_button_container.remove_widget(self.cancel_button)
self.download_button_container.add_widget(self.download_button)
Expand Down

0 comments on commit 0607d40

Please sign in to comment.