void DesktopSettingsView::Revert() { TrackerSettings settings; settings.SetShowDisksIcon(fShowDisksIcon); settings.SetMountVolumesOntoDesktop(fMountVolumesOntoDesktop); settings.SetMountSharedVolumesOntoDesktop(fMountSharedVolumesOntoDesktop); settings.SetEjectWhenUnmounting(fEjectWhenUnmounting); ShowCurrentSettings(); _SendNotices(); }
void DesktopSettingsView::SetDefaults() { // ToDo: Avoid the duplication of the default values. TrackerSettings settings; settings.SetShowDisksIcon(false); settings.SetMountVolumesOntoDesktop(true); settings.SetMountSharedVolumesOntoDesktop(true); settings.SetEjectWhenUnmounting(true); ShowCurrentSettings(); _SendNotices(); }