Skip to content

Commit

Permalink
added Popup.Feedback
Browse files Browse the repository at this point in the history
for displaying progress popup when running a block of code

- 3.1.26
  • Loading branch information
lslezak committed Mar 25, 2014
1 parent 769b376 commit 9ba09dd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions library/general/src/modules/Popup.rb
Expand Up @@ -1173,6 +1173,19 @@ def ShowFeedback(headline, message)
nil
end

# Run the block with a feeback popup
# The popup is automatically closed at the end
# (even when an exception is raised)
# @param headline [String] popup headline (displayed in bold)
# @param message [String] message with details, displayed below the headline
# @param block block to execute
def Feedback(headline, message, &block)
ShowFeedback(headline, message)
yield
ensure
ClearFeedback
end

# Show a simple message and wait until user clicked "OK".
#
#
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 25 14:34:29 UTC 2014 - lslezak@suse.cz

- added Popup.Feedback for displaying progress popup when running
a block of code
- 3.1.26

-------------------------------------------------------------------
Tue Mar 25 08:09:09 CET 2014 - jsuchome@suse.cz

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


Name: yast2
Version: 3.1.25
Version: 3.1.26
Release: 0
URL: https://github.com/yast/yast-yast2

Expand Down

0 comments on commit 9ba09dd

Please sign in to comment.