Skip to content

Commit 83dbd7a

Browse files
committed
Update the message to acompany the install progress bar
1 parent 6c09fbf commit 83dbd7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openandroidinstaller/views/install_view.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
def build(self):
5555
"""Create the content of the view."""
5656
# error text
57-
self.error_text = Text("", color=colors.RED)
57+
self.error_text = Text("", color=colors.GREEN)
5858

5959
# switch to enable advanced output - here it means show terminal input/output in tool
6060
def check_advanced_switch(e):
@@ -178,7 +178,8 @@ def run_install(self, e):
178178
# disable the call button while the command is running
179179
self.install_button.disabled = True
180180
self.install_addons_switch.disabled = True
181-
self.error_text.value = ""
181+
self.error_text.value = "Please be patient, it may take a few minutes."
182+
self.error_text.color = colors.GREEN
182183
# reset the progress indicators
183184
self.progress_indicator.clear()
184185
# reset terminal output
@@ -208,6 +209,7 @@ def run_install(self, e):
208209
self.install_button.disabled = False
209210
# also remove the last error text if it happened
210211
self.error_text.value = "Installation failed! Try again or make sure everything is setup correctly."
212+
self.error_text.color = colors.RED
211213
else:
212214
sleep(5) # wait to make sure everything is fine
213215
self.progress_indicator.set_progress_bar(100)

0 commit comments

Comments
 (0)