[yast-commit] r46310 - /trunk/yast2/library/wizard/src/Progress.ycp
Author: kmachalkova Date: Wed Apr 9 17:43:12 2008 New Revision: 46310 URL: http://svn.opensuse.org/viewcvs/yast?rev=46310&view=rev Log: Do not call UI::GetDisplay info on global level - it forces UI initialization each time Progress module is imported. Call it only when needed (#374259) Modified: trunk/yast2/library/wizard/src/Progress.ycp Modified: trunk/yast2/library/wizard/src/Progress.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/wizard/src/Progress.ycp?rev=46310&r1=46309&r2=46310&view=diff ============================================================================== --- trunk/yast2/library/wizard/src/Progress.ycp (original) +++ trunk/yast2/library/wizard/src/Progress.ycp Wed Apr 9 17:43:12 2008 @@ -103,9 +103,6 @@ integer super_step = 0; list super_stages = []; - map display_info = UI::GetDisplayInfo(); - boolean can_display_images = (display_info["HasImageSupport"]:false == true); - // remember the last max. value of the subprogress bar integer last_subprogress_max = 0; @@ -331,6 +328,9 @@ } define term GenerateIdleIcons (integer number_of_stages) { + map display_info = UI::GetDisplayInfo(); + boolean can_display_images = (display_info["HasImageSupport"]:false == true); + if (! can_display_images) return `Empty(); term ret = `HBox (`HSpacing (2)); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org