Class: Yast::InstComplexWelcomeClient

Inherits:
Client
  • Object
show all
Extended by:
I18n
Includes:
Logger
Defined in:
src/lib/installation/clients/inst_complex_welcome.rb

Overview

This client shows main dialog for choosing the language, keyboard, selecting the product/accepting the license.

Constant Summary

BETA_FILE =
"/README.BETA".freeze

Instance Method Summary collapse

Instance Method Details

#mainObject

Main client method



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'src/lib/installation/clients/inst_complex_welcome.rb', line 53

def main
  if FileUtils.Exists(BETA_FILE) && !GetInstArgs.going_back
    InstShowInfo.show_info_txt(BETA_FILE)
  end

  # bnc#206706
  return :auto if Mode.auto

  textdomain "installation"

  Yast::Wizard.EnableAbortButton

  loop do
    dialog_result = ::Installation::Dialogs::ComplexWelcome.run(
      products, disable_buttons: disable_buttons
    )
    result = handle_dialog_result(dialog_result)
    next unless result

    return result if !available_products? || result != :next
    return merge_and_run_workflow
  end
end