File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
usr/lib/linuxmint/mintUpdate Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ class KernelWindow():
184184 def __init__ (self , callback = None ):
185185 self .callback = callback
186186 self .settings = Gio .Settings (schema_id = "com.linuxmint.updates" )
187+ self .refreshing_kernels = False
187188 self .cache = None
188189 self .remove_kernels_listbox = []
189190 self .queued_kernels_listbox = []
@@ -246,6 +247,9 @@ def on_kernel_type_combo_changed(self, widget):
246247 self .refresh_kernels_list ()
247248
248249 def refresh_kernels_list (self ):
250+ if self .refreshing_kernels :
251+ return
252+ self .refreshing_kernels = True
249253 self .ui_spinner .start ()
250254 self .ui_stack .set_visible_child_name ("refresh_page" )
251255 self .ui_window .get_window ().set_cursor (Gdk .Cursor (Gdk .CursorType .WATCH ))
@@ -263,6 +267,7 @@ def refresh_kernels_async(self):
263267
264268 @_idle
265269 def refresh_kernels_list_done (self , kernels ):
270+ self .refreshing_kernels = False
266271 now = datetime .now ()
267272 hwe_support_duration = {}
268273 kernels = kernels .split ("\n " )
You can’t perform that action at this time.
0 commit comments