[gnome-boxes] Show disk and memory details for all known OSs
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Show disk and memory details for all known OSs
- Date: Wed, 7 Dec 2011 13:15:51 +0000 (UTC)
commit 3563fd527e10502cad4afcc2c011b835fbd79e05
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Dec 7 15:13:50 2011 +0200
Show disk and memory details for all known OSs
Not just the ones for which we have express installation supported.
src/wizard.vala | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index f312797..fc440bb 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -273,18 +273,19 @@ private class Boxes.Wizard: Boxes.UI {
}
} else if (install_media != null) {
summary.add_property (_("System"), install_media.label);
+ var memory = format_size (resources.ram, FormatSizeFlags.IEC_UNITS);
+
if (install_media is UnattendedInstaller) {
var media = install_media as UnattendedInstaller;
if (media.express_install) {
summary.add_property (_("Username"), media.username);
summary.add_property (_("Password"), media.hidden_password);
}
-
- var memory = format_size (resources.ram, FormatSizeFlags.IEC_UNITS);
- summary.add_property (_("Memory"), memory);
- memory = format_size (resources.storage, FormatSizeFlags.IEC_UNITS);
- summary.add_property (_("Disk"), _("%s maximum".printf (memory)));
}
+
+ summary.add_property (_("Memory"), memory);
+ memory = format_size (resources.storage, FormatSizeFlags.IEC_UNITS);
+ summary.add_property (_("Disk"), _("%s maximum".printf (memory)));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]