Skip to content

Commit

Permalink
read and write data from and to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsn committed Oct 23, 2012
1 parent 8bd862f commit d6607a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/clients/online_update_configuration.ycp
Expand Up @@ -96,6 +96,7 @@
UI::ChangeWidget(`id(`updateInterval), `Value, OnlineUpdateConfiguration::updateInterval);
UI::ChangeWidget(`id(`skipInteractivePatches), `Value, OnlineUpdateConfiguration::skipInteractivePatches);
UI::ChangeWidget(`id(`autoAgreeWithLicenses), `Value, OnlineUpdateConfiguration::autoAgreeWithLicenses);
UI::ChangeWidget(`id(`includeRecommends), `Value, OnlineUpdateConfiguration::includeRecommends);


UI::RecalcLayout();
Expand All @@ -112,7 +113,11 @@
OnlineUpdateConfiguration::updateInterval = (symbol) UI::QueryWidget(`id(`updateInterval), `Value );
OnlineUpdateConfiguration::skipInteractivePatches = (boolean) UI::QueryWidget(`id(`skipInteractivePatches), `Value );
OnlineUpdateConfiguration::autoAgreeWithLicenses = (boolean) UI::QueryWidget(`id(`autoAgreeWithLicenses), `Value );
OnlineUpdateConfiguration::includeRecommends = (boolean) UI::QueryWidget(`id(`includeRecommends), `Value );
OnlineUpdateConfiguration::enableAOU = (boolean) UI::QueryWidget(`id(`automaticOnlineUpdate), `Value );
// reset categories to disable the filter
boolean catFilter = (boolean) UI::QueryWidget(`id(`category), `Value);
if (! catFilter) OnlineUpdateConfiguration::currentCategories = [];

y2milestone("Writing online update configuration settings.");
OnlineUpdateConfiguration::Write();
Expand Down

0 comments on commit d6607a1

Please sign in to comment.