From 376ac6e089e9153e0bcedc7ec9179b009db56fac Mon Sep 17 00:00:00 2001 From: Yousuf Philips Date: Sun, 29 Mar 2020 23:07:26 +0400 Subject: [PATCH] hide android phone from network group (bug #11584) --- thunar/thunar-device-monitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-device-monitor.c b/thunar/thunar-device-monitor.c index a825e1c1..1e76fd8a 100644 --- a/thunar/thunar-device-monitor.c +++ b/thunar/thunar-device-monitor.c @@ -576,8 +576,9 @@ thunar_device_monitor_mount_added (GVolumeMonitor *volume_monitor, if (G_UNLIKELY (location == NULL)) return; - /* skip ghoto locations, since those also have a volume */ - if (g_file_has_uri_scheme (location, "gphoto2")) + /* skip gphoto and mtp locations, since those also have a volume */ + if (g_file_has_uri_scheme (location, "gphoto2") + || g_file_has_uri_scheme (location, "mtp")) { g_object_unref (location); return; -- 2.20.1