@@ -211,11 +211,13 @@ def show_watch_menu(self):
211
211
ctk .CTkButton (self .dynamic_frame , text = "Save device info" , command = lambda : self .switch_menu ("DevInfo" ), width = 200 , height = 70 , font = self .stfont ),
212
212
ctk .CTkButton (self .dynamic_frame , text = "Collect Unified Logs" , command = lambda : self .switch_menu ("CollectUL" ), width = 200 , height = 70 , font = self .stfont ),
213
213
ctk .CTkButton (self .dynamic_frame , text = "Extract crash reports" , command = lambda : self .switch_menu ("CrashReport" ), width = 200 , height = 70 , font = self .stfont ),
214
+ ctk .CTkButton (self .dynamic_frame , text = "Initiate Sysdiagnose" , command = lambda : self .switch_menu ("SysDiag" ), width = 200 , height = 70 , font = self .stfont ),
214
215
ctk .CTkButton (self .dynamic_frame , text = "Extract AFC Media files" , command = lambda : self .switch_menu ("Media" ), width = 200 , height = 70 , font = self .stfont ),
215
216
]
216
217
self .menu_text = ["Save informations about the device, installed apps,\n SIM and companion devices." ,
217
218
"Collects the AUL from the device and saves\n them as a logarchive." ,
218
219
"Pull the crash report folder from the device." ,
220
+ "Create a Sysdiagnose archive on the device and\n pull it to the disk afterwards." ,
219
221
"Pull the \" Media\" -folder from the device\n (pictures, videos, recordings)" ]
220
222
self .menu_textbox = []
221
223
for btn in self .menu_buttons :
@@ -534,20 +536,32 @@ def show_sysdiag(self):
534
536
if self .choose .get () == True :
535
537
self .yesb .pack_forget ()
536
538
self .nob .pack_forget ()
537
- self .text .pack_forget ()
538
- self .text .configure (text = "To trigger the creation of the Sysdiagnose files,\n press: Power/Side + VolUp + VolDown for 0.215 seconds." )
539
+ self .text .pack_forget ()
540
+ if d_class == "Watch" :
541
+ self .text .configure (text = "To trigger the creation of the Sysdiagnose files,\n press: Power/Side + Digital Crown for 0.215 seconds." )
542
+ else :
543
+ self .text .configure (text = "To trigger the creation of the Sysdiagnose files,\n press: Power/Side + VolUp + VolDown for 0.215 seconds." )
539
544
self .text .pack (pady = 10 )
540
- self .diag_image = ctk .CTkImage (dark_image = Image .open (os .path .join (os .path .dirname (__file__ ), "assets" , "diag.png" )), size = (600 , 300 ))
545
+ if d_class == "Watch" :
546
+ self .diag_image = ctk .CTkImage (dark_image = Image .open (os .path .join (os .path .dirname (__file__ ), "assets" , "diag_watch.png" )), size = (600 , 300 ))
547
+ else :
548
+ self .diag_image = ctk .CTkImage (dark_image = Image .open (os .path .join (os .path .dirname (__file__ ), "assets" , "diag.png" )), size = (600 , 300 ))
541
549
self .diaglabel = ctk .CTkLabel (self .dynamic_frame , image = self .diag_image , text = " " , width = 600 , height = 300 , fg_color = "transparent" , font = self .stfont , anchor = "w" , justify = "left" )
542
550
self .diaglabel .pack ()
543
551
self .progress = ctk .CTkProgressBar (self .dynamic_frame , width = 585 , height = 30 , corner_radius = 0 , mode = "indeterminate" , indeterminate_speed = 0.5 )
544
552
self .waitsys = ctk .IntVar (self , 0 )
545
553
self .diag = threading .Thread (target = lambda : self .sysdiag (self .text , self .progress , self .waitsys ))
546
554
self .diag .start ()
547
555
self .wait_variable (self .waitsys )
548
- ctk .CTkButton (self .dynamic_frame , text = "OK" , font = self .stfont , command = lambda : self .switch_menu ("AdvMenu" )).pack (pady = 10 )
556
+ if d_class == "Watch" :
557
+ ctk .CTkButton (self .dynamic_frame , text = "OK" , font = self .stfont , command = self .show_watch_menu ).pack (pady = 10 )
558
+ else :
559
+ ctk .CTkButton (self .dynamic_frame , text = "OK" , font = self .stfont , command = lambda : self .switch_menu ("AdvMenu" )).pack (pady = 10 )
549
560
else :
550
- self .switch_menu ("AdvMenu" )
561
+ if d_class == "Watch" :
562
+ self .show_watch_menu ()
563
+ else :
564
+ self .switch_menu ("AdvMenu" )
551
565
552
566
def sysdiag (self , text , progress , waitsys ):
553
567
self .abort = ctk .CTkButton (self .dynamic_frame , text = "Abort" , font = self .stfont , command = self .abort_diag )
0 commit comments