Skip to content

Commit

Permalink
kernelwindow.py: Fixed runtime error when kernel type enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Feb 4, 2025
1 parent c540de3 commit 13156ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/lib/linuxmint/mintUpdate/kernelwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ def __init__(self, callback=None):
if self.allow_kernel_type_selection:
# Set up the kernel type selection dropdown
for index, kernel_type in enumerate(SUPPORTED_KERNEL_TYPES):
self.kernel_type_combo.append_text(kernel_type[1:])
self.ui_kernel_type_combo.append_text(kernel_type[1:])
if kernel_type[1:] == CONFIGURED_KERNEL_TYPE[1:]:
self.kernel_type_combo.set_active(index)
self.ui_kernel_type_combo.connect("changed", on_kernel_type_combo_changed)
self.ui_kernel_type_combo.set_active(index)
self.ui_kernel_type_combo.connect("changed", self.on_kernel_type_combo_changed)

self.ui_window.show_all()
self.ui_kernel_type_label.set_visible(self.allow_kernel_type_selection)
Expand Down

0 comments on commit 13156ce

Please sign in to comment.