Skip to content

Commit

Permalink
Merge 6cbef7e into d0bb7c5
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jul 4, 2019
2 parents d0bb7c5 + 6cbef7e commit 1c8deaf
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package/yast2-proxy.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 4 13:49:19 UTC 2019 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Fix 'proxy' behaviour when running in firstboot (bsc#1140199).
- 4.0.3

-------------------------------------------------------------------
Wed Jun 27 17:14:44 CEST 2018 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-proxy.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-proxy
Version: 4.0.2
Version: 4.0.3
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
27 changes: 22 additions & 5 deletions src/include/proxy/dialogs.rb
Expand Up @@ -376,7 +376,7 @@ def UrlContainPassword(url)
# If modified, ask for confirmation
# @return true if abort is confirmed
def ReallyAbortCond
!modified || Popup.ReallyAbort(true)
(!modified || installation?) || Popup.ReallyAbort(true)
end

# Proxy dialog
Expand Down Expand Up @@ -541,11 +541,9 @@ def ProxyMainDialog(standalone)
contents,
help,
Label.BackButton,
Label.FinishButton
Label.NextButton
)
Wizard.SetNextButton(:next, Label.OKButton)
Wizard.SetAbortButton(:abort, Label.CancelButton)
Wizard.HideBackButton
adjust_wizard_buttons unless installation?

# #103841, relaxed. now avoiding only quotes
# #337048 allow using space as well
Expand Down Expand Up @@ -752,5 +750,24 @@ def ProxyMainDialog(standalone)

deep_copy(ret)
end

private

# Sets OK/Cancel wizard buttons
def adjust_wizard_buttons
Wizard.SetNextButton(:next, Label.OKButton)
Wizard.SetAbortButton(:abort, Label.CancelButton)
Wizard.HideBackButton
end

# Determines whether running in installation mode
#
# We do not use Stage.initial because of firstboot, which which runs in 'installation' mode
# but in 'firstboot' stage.
#
# @return [Boolean] Boolean if running in installation or update mode
def installation?
Mode.installation || Mode.update
end
end
end
1 change: 0 additions & 1 deletion src/lib/proxy/client.rb
Expand Up @@ -149,7 +149,6 @@ def ProxyGUI

Wizard.CreateDialog
Wizard.SetDesktopTitleAndIcon("proxy")
Wizard.SetNextButton(:next, Label.FinishButton)

# main ui function
ret = ProxyMainDialog(true)
Expand Down

0 comments on commit 1c8deaf

Please sign in to comment.