From eaceb59ea79c190f05c8e2e819f4deed827ecb22 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 11 Nov 2019 12:16:10 -0800 Subject: [PATCH] locations: Filter out network volume locations 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 --- locations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/locations.js b/locations.js index d07a9ad08..48aee8393 100644 --- a/locations.js +++ b/locations.js @@ -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