Author: aschnell Date: Wed Jun 18 15:04:54 2008 New Revision: 48393 URL: http://svn.opensuse.org/viewcvs/yast?rev=48393&view=rev Log: - added function to save settings Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/StorageSettings.ycp branches/tmp/aschnell/part-redesign/storage/src/storage_finish.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp?rev=48393&r1=48392&r2=48393&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp Wed Jun 18 15:04:54 2008 @@ -188,6 +188,8 @@ } else if (ret1 == `apply || ret1 == `finish) { + StorageSettings::Save(); + symbol ret2 = (symbol) WFM::CallFunction("inst_prepdisk", [true, true]); Storage::CreateTargetBackup("expert-partitioner"); Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/StorageSettings.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/StorageSettings.ycp?rev=48393&r1=48392&r2=48393&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/StorageSettings.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/StorageSettings.ycp Wed Jun 18 15:04:54 2008 @@ -19,10 +19,6 @@ global void SetDisplayName(symbol new_display_name) { display_name = new_display_name; - - // TODO: during installation? - string tmp = substring(tostring(display_name), 1); - SCR::Write(.sysconfig.storage.DISPLAY_NAME, tmp); } global symbol GetDisplayName() @@ -64,12 +60,6 @@ global void SetHiddenFields(list<symbol> new_hidden_fields) { hidden_fields = new_hidden_fields; - - // TODO: during installation? - string tmp = mergestring(maplist(symbol field, hidden_fields, { - return substring(tostring(field), 1); - }), " "); - SCR::Write(.sysconfig.storage.DISPLAY_NAME, tmp); } global list<symbol> GetHiddenFields() @@ -111,4 +101,22 @@ return filter(symbol field, fields, { return !contains(hidden, field); }); } + + + global void Save() + { + if (display_name != nil) + { + string tmp = substring(tostring(display_name), 1); + SCR::Write(.sysconfig.storage.DISPLAY_NAME, tmp); + } + + if (hidden_fields != nil) + { + string tmp = mergestring(maplist(symbol field, hidden_fields, { + return substring(tostring(field), 1); + }), " "); + SCR::Write(.sysconfig.storage.HIDDEN_FIELDS, tmp); + } + } } Modified: branches/tmp/aschnell/part-redesign/storage/src/storage_finish.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/storage_finish.ycp?rev=48393&r1=48392&r2=48393&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/storage_finish.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/storage_finish.ycp Wed Jun 18 15:04:54 2008 @@ -17,6 +17,7 @@ textdomain "storage"; import "Storage"; +import "StorageSettings"; import "Mode"; import "Installation"; import "Initrd"; @@ -76,6 +77,7 @@ SCR::Execute (.target.bash, "/sbin/vgscan"); } Storage::SaveUsedFs(); + StorageSettings::Save(); } else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org