Skip to content

Commit

Permalink
adapted suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Apr 29, 2024
1 parent 70ab985 commit 57c7b59
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib/installation/dialogs/security.rb
Expand Up @@ -119,15 +119,9 @@ def polkit_frame
end

def cpu_frame
current_bl = ::Bootloader::BootloaderFactory.current
widget = if current_bl.is_a?(::Bootloader::SystemdBoot)
::Bootloader::SystemdBootWidget::SdCpuMitigationsWidget.new
else
::Bootloader::Grub2Widget::GrubCpuMitigationsWidget.new
end
frame(
_("CPU"),
widget
::Bootloader::CpuMitigationsWidget.new
)
end

Expand Down

0 comments on commit 57c7b59

Please sign in to comment.