From 0607d402b1a50e0149427ec40111fbf1b857c1a1 Mon Sep 17 00:00:00 2001 From: Bohdan Bobrowski Date: Fri, 6 Sep 2024 14:37:27 +0200 Subject: [PATCH] Android UI fixes --- blog2epub/blog2epub_gui.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blog2epub/blog2epub_gui.py b/blog2epub/blog2epub_gui.py index c2b8b8c..fed415c 100644 --- a/blog2epub/blog2epub_gui.py +++ b/blog2epub/blog2epub_gui.py @@ -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): @@ -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)