[gnome-boxes/improve-storage-management-ux: 6/7] preferences, resources: Don't add "recommended" info for external storage
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/improve-storage-management-ux: 6/7] preferences, resources: Don't add "recommended" info for external storage
- Date: Mon, 13 Dec 2021 15:06:42 +0000 (UTC)
commit 943b221a9aef4d1f3b8341d76c0c23fcb823a4f6
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Dec 13 16:02:44 2021 +0100
preferences, resources: Don't add "recommended" info for external storage
If the disk wasn't created by Boxes, there's no point on advise the
recommend value for size limit since Boxes can't resize external
disks.
src/preferences/resources-page.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/preferences/resources-page.vala b/src/preferences/resources-page.vala
index 216ca0d8..7a754a6d 100644
--- a/src/preferences/resources-page.vala
+++ b/src/preferences/resources-page.vala
@@ -80,7 +80,8 @@ private async void mark_recommended_resources () {
var row_subtitle = _("Recommended %s.");
ram_row.set_subtitle (row_subtitle.printf (GLib.format_size (recommended_resources.ram)));
- storage_row.set_subtitle (row_subtitle.printf (GLib.format_size
(recommended_resources.storage)));
+ if (machine.storage_volume != null)
+ storage_row.set_subtitle (row_subtitle.printf (GLib.format_size
(recommended_resources.storage)));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]