Skip to content

Commit

Permalink
migration_repos.rb - open Wizard only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Sep 7, 2015
1 parent bacf76a commit c3edb2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clients/migration_repos.rb
Expand Up @@ -22,12 +22,14 @@ class MigrationReposClient < Client
def main
textdomain "registration"

Wizard.CreateDialog
# create the Wizard dialog if needed
wizard_present = Wizard.IsWizardDialog
Wizard.CreateDialog unless wizard_present

begin
::Registration::UI::MigrationReposWorkflow.run(*Yast::WFM.Args)
ensure
Wizard.CloseDialog
Wizard.CloseDialog unless wizard_present
end
end
end unless defined?(YaST::MigrationReposClient)
Expand Down

0 comments on commit c3edb2b

Please sign in to comment.