Author: mzugec Date: Sun Jul 6 22:20:37 2008 New Revision: 48896 URL: http://svn.opensuse.org/viewcvs/yast?rev=48896&view=rev Log: possibility to disable FileChanges popup (bnc#383718) Modified: trunk/yast2/library/system/src/FileChanges.ycp trunk/yast2/package/yast2.changes Modified: trunk/yast2/library/system/src/FileChanges.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/system/src/FileChanges.ycp?rev=48896&r1=48895&r2=48896&view=diff ============================================================================== --- trunk/yast2/library/system/src/FileChanges.ycp (original) +++ trunk/yast2/library/system/src/FileChanges.ycp Sun Jul 6 22:20:37 2008 @@ -32,6 +32,8 @@ import "Mode"; import "Popup"; +import "Directory"; +import "Label"; string data_file = "/var/lib/YaST2/file_checksums.ycp"; @@ -159,7 +161,29 @@ msg = _("Files %1 have been changed manually. YaST might lose some of the changes"); msg = sformat (msg, mergestring (files, ", ")); - return Popup::ContinueCancel (msg); + string popup_file = "/filechecks_non_verbose"; + if ($[] == SCR::Read (.target.stat, Directory::vardir + popup_file)) + { + term content = `VBox( + `Label(msg), + `Left(`CheckBox(`id(`disable), _("Do not show this message anymore"))), + `HBox(`PushButton(`id(`ok), Label::ContinueButton()), + `PushButton(`id(`cancel), Label::CancelButton())) + ); + UI::OpenDialog(content); + UI::SetFocus(`ok); + any ret=UI::UserInput(); + y2milestone("ret = %1", ret); + if (ret==`ok && (boolean)UI::QueryWidget(`disable, `Value)){ + y2milestone("Disabled checksum popups"); + SCR::Write ( .target.string, Directory::vardir + popup_file, ""); + } + UI::CloseDialog(); + if (ret==`ok)return true; + else return false; + } +// return Popup::ContinueCancel (msg); + else return true; } return true; } Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=48896&r1=48895&r2=48896&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Sun Jul 6 22:20:37 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Sun Jul 6 22:18:42 CEST 2008 - mzugec@suse.de + +- possibility to disable FileChanges popup (bnc#383718) + +------------------------------------------------------------------- Tue Jul 1 17:43:02 CEST 2008 - mzugec@suse.de - new function is NetworkService::Networkv6Running() -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org