Class: Bootloader::UpdateNvramWidget

Inherits:
CWM::CheckBox
  • Object
show all
Defined in:
src/lib/bootloader/generic_widgets.rb

Overview

Represents switcher for NVRAM update

Instance Method Summary collapse

Constructor Details

#initializeUpdateNvramWidget

Returns a new instance of UpdateNvramWidget.



110
111
112
113
114
# File 'src/lib/bootloader/generic_widgets.rb', line 110

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



120
121
122
123
124
125
# File 'src/lib/bootloader/generic_widgets.rb', line 120

def help
  _("<p><b>Update NVRAM Entry</b> will add nvram entry for the bootloader\n" \
    "in the firmware.\n" \
    "This is usually desirable unless you want to preserve specific settings\n" \
    "or need to work around firmware issues.</p>\n")
end

#initObject



127
128
129
# File 'src/lib/bootloader/generic_widgets.rb', line 127

def init
  self.value = Bootloader::BootloaderFactory.current.update_nvram
end

#labelObject



116
117
118
# File 'src/lib/bootloader/generic_widgets.rb', line 116

def label
  _("Update &NVRAM Entry")
end

#storeObject



131
132
133
# File 'src/lib/bootloader/generic_widgets.rb', line 131

def store
  Bootloader::BootloaderFactory.current.update_nvram = value
end