[gnome-boxes] A one-liner code move to improve readability



commit 0f4673eb1530b8245e0aef76dba36b75c14ec74d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed May 16 19:50:37 2012 +0300

    A one-liner code move to improve readability

 src/wizard.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 49c37fa..d745136 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -327,7 +327,6 @@ private class Boxes.Wizard: Boxes.UI {
             }
         } else if (install_media != null) {
             summary.add_property (_("System"), install_media.label);
-            var memory = format_size (install_media.resources.ram, FormatSizeFlags.IEC_UNITS);
 
             if (install_media is UnattendedInstaller) {
                 var media = install_media as UnattendedInstaller;
@@ -337,6 +336,7 @@ private class Boxes.Wizard: Boxes.UI {
                 }
             }
 
+            var memory = format_size (install_media.resources.ram, FormatSizeFlags.IEC_UNITS);
             summary.add_property (_("Memory"), memory);
             memory = format_size (install_media.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]