Skip to content

Commit

Permalink
locations: Filter out network volume locations
Browse files Browse the repository at this point in the history
This is another spot where I added logic to mount handling and forgot
to add it for volumes too. We don't want to show network locations,
so we need to filter out both volumes and mounts.

Fixed #1031
  • Loading branch information
philipl authored and 3v1n0 committed Jan 7, 2020
1 parent c541d2d commit eaceb59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions locations.js
Expand Up @@ -162,6 +162,10 @@ var Removables = class DashToDock_Removables {
return;
}

if (volume.get_identifier('class') == 'network') {
return;
}

let activationRoot = volume.get_activation_root();
if (!activationRoot) {
// Can't offer to mount a device if we don't know
Expand Down

0 comments on commit eaceb59

Please sign in to comment.