Class: Yast::ConfirmVirtProposal

Inherits:
Object
  • Object
show all
Includes:
I18n, Singleton, UIShortcuts
Defined in:
src/lib/network/confirm_virt_proposal.rb

Overview

The class represents a simple dialog which asks user for confirmation of network.service restart during installation.

Instance Method Summary collapse

Instance Method Details

#runObject

Shows a confirmation timed dialogue

Returns :ok when user agreed, :cancel otherwise



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'src/lib/network/confirm_virt_proposal.rb', line 36

def run
  textdomain "network"

  ret = Popup.TimedAnyQuestion(
    _("Confirm Network Restart"),
    _(
      "Because of the bridged network, YaST2 needs to " \
      "restart the network to apply the settings."
    ),
    Label.OKButton,
    Label.CancelButton,
    :focus_yes,
    10
  )

  ret ? :ok : :cancel
end