diff options
author | Burt P <pburt0@gmail.com> | 2020-01-01 14:22:26 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2020-01-03 09:31:10 -0800 |
commit | 627ebd31f52762c24d11dcb7f6f732999e334960 (patch) | |
tree | ce7a9db4ec5e381c50313496d46f99a5555333cc /modules | |
parent | 112e399c0810f04248ca2a23886afd2bc3b25f83 (diff) |
storage: just don't put vendor in the label for now
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices/storage.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/devices/storage.c b/modules/devices/storage.c index 2e969062..b4e34994 100644 --- a/modules/devices/storage.c +++ b/modules/devices/storage.c @@ -195,16 +195,12 @@ gboolean __scan_udisks2_devices(void) { disk = (udiskd *)node->data; devid = g_strdup_printf("UDISKS%d", n++); - if (disk->vendor && strlen(disk->vendor) > 0) { - label = g_strdup_printf("%s %s", disk->vendor, disk->model); + if (disk->vendor && strlen(disk->vendor) > 0) vendor_str = disk->vendor; - } - else{ - label = g_strdup(disk->model); - /* try and pull one out of the model */ - const Vendor *v = vendor_match(disk->model, NULL); - vendor_str = v ? v->name : _("(Unknown)"); - } + else + vendor_str = _("(Unknown)"); + + label = g_strdup(disk->model); icon = NULL; |