@@ -106,12 +106,13 @@ def check_advanced_switch(e):
106106 "Flash custom recovery" : "steps-header-recovery.png" ,
107107 "Install OS" : "steps-header-install.png" ,
108108 }
109- self .right_view .controls = [
109+ self .right_view_header .controls = [
110110 get_title (
111111 f"{ self .step .title } " ,
112112 step_indicator_img = steps_indictor_img_lookup .get (self .step .title ),
113- ),
114- self .state .progressbar ,
113+ )
114+ ]
115+ self .right_view .controls = [
115116 Text (f"{ self .step .content } " ),
116117 ]
117118 # basic view depending on step.type
@@ -191,12 +192,6 @@ def call_to_phone(self, e, command: str):
191192 # reset terminal output
192193 if self .state .advanced :
193194 self .terminal_box .clear ()
194- # display a progress bar to show something is happening
195- progress_bar = Row (
196- [ProgressBar (width = 600 , color = "#00d886" , bgcolor = "#eeeeee" , bar_height = 16 )],
197- alignment = "center" ,
198- )
199- self .right_view .controls .append (progress_bar )
200195 self .right_view .update ()
201196
202197 # get the appropriate function to run for every possible command.
@@ -243,15 +238,11 @@ def call_to_phone(self, e, command: str):
243238 if not success :
244239 # enable call button to retry
245240 self .call_button .disabled = False
246- # pop the progress bar
247- self .right_view .controls .remove (progress_bar )
248241 # also remove the last error text if it happened
249242 self .error_text .value = f"Command { command } failed! Try again or make sure everything is setup correctly."
250243 else :
251244 sleep (5 ) # wait to make sure everything is fine
252245 logger .success (f"Command { command } run successfully. Allow to continue." )
253- # pop the progress bar
254- self .right_view .controls .remove (progress_bar )
255246 # emable the confirm buton and disable the call button
256247 self .confirm_button .disabled = False
257248 self .call_button .disabled = True
0 commit comments