Your wish is my command: now only removable read-only volumes have their

desktops integrated in Tracker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19947 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2007-01-24 19:29:46 +00:00
parent c3ccb39319
commit 5f5d917ad1
2 changed files with 4 additions and 3 deletions

View File

@ -9258,8 +9258,9 @@ BPoseView::ShouldIntegrateDesktop(const BVolume &volume)
if (!settings.IntegrateNonBootBeOSDesktops())
return false;
// That's obviously what makes a BeOS desktop :-)
return volume.KnowsQuery() && volume.KnowsAttr() && volume.KnowsMime();
// Only removable read-only volumes should have their desktops integrated
return volume.IsRemovable() && volume.IsReadOnly()
&& volume.KnowsQuery() && volume.KnowsAttr() && volume.KnowsMime();
}

View File

@ -172,7 +172,7 @@ TTrackerState::LoadSettingsIfNeeded()
Add(fMountSharedVolumesOntoDesktop =
new BooleanValueSetting("MountSharedVolumesOntoDesktop", false));
Add(fIntegrateNonBootBeOSDesktops = new BooleanValueSetting
("IntegrateNonBootBeOSDesktops", false));
("IntegrateNonBootBeOSDesktops", true));
Add(fIntegrateAllNonBootDesktops = new BooleanValueSetting
("IntegrateAllNonBootDesktops", false));
Add(fEjectWhenUnmounting = new BooleanValueSetting("EjectWhenUnmounting", true));