[gnome-boxes/improve-storage-management-ux: 3/5] 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: 3/5] preferences, resources: Don't add "recommended" info for external storage
- Date: Tue, 14 Dec 2021 11:06:07 +0000 (UTC)
commit e84ec9f7ac56625f1b1437e78f545ff3f45ad519
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]