@@ -1463,7 +1463,7 @@ def _build_ui(self):
14631463 "custom" : "Custom"
14641464 }.get (self .order_mode , "Default" )
14651465 self .sort_var = StringVar (value = display_mode )
1466- self .sort_combo = ctk .CTkComboBox (sort_frame , values = sort_values , variable = self .sort_var , width = 100 , font = ("Nunito" , 12 ), command = self ._change_sort )
1466+ self .sort_combo = ctk .CTkComboBox (sort_frame , values = sort_values , variable = self .sort_var , width = 100 , font = ("Nunito" , 12 ), command = self ._change_sort , state = "readonly" )
14671467 self .sort_combo .pack (side = "left" , padx = 4 )
14681468 if self .order_mode == "custom" :
14691469 self .edit_order_btn = ctk .CTkButton (sort_frame , text = "Edit Order" , command = self .edit_custom_order ,
@@ -1665,7 +1665,7 @@ def show_settings_popup(self):
16651665 theme_pref = self .settings .get ("theme" , "system" )
16661666 theme_var = ctk .StringVar (value = theme_pref )
16671667 theme_options = ["light" , "dark" , "system" ]
1668- theme_combo = ctk .CTkComboBox (frame , values = theme_options , variable = theme_var , width = 200 , font = ("Nunito" , 11 ))
1668+ theme_combo = ctk .CTkComboBox (frame , values = theme_options , variable = theme_var , width = 200 , font = ("Nunito" , 11 ), state = "readonly" )
16691669 theme_combo .pack (padx = 10 , pady = (0 ,10 ))
16701670 theme_combo .configure (command = lambda val : self .toggle_theme (val ))
16711671 ctk .CTkButton (frame , text = "Show Sync Key" , command = self .reshow_sync_key_display_popup , fg_color = ACCENT , text_color = BG , hover_color = ACCENT_DIM , width = 120 ).pack (pady = 10 , padx = 10 )
0 commit comments