From ba16995070491690f3060b3b75a7ca07e70ead9a Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Mon, 22 Jun 2020 16:53:44 +0200 Subject: [PATCH] Show system drives last Change-type: patch --- lib/gui/app/models/store.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/gui/app/models/store.ts b/lib/gui/app/models/store.ts index d66e9a73..fe1b3fff 100644 --- a/lib/gui/app/models/store.ts +++ b/lib/gui/app/models/store.ts @@ -134,6 +134,8 @@ function storeReducer( } drives = _.sortBy(drives, [ + // System drives last + (d) => !!d.isSystem, // Devices with no devicePath first (usbboot) (d) => !!d.devicePath, // Then sort by devicePath (only available on Linux with udev) or device