mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
sculpt_manager: detailed storage progress messages
This patch replaces the generic "In progress..." message by slightly more concrete information about the type of operation. This is useful to distinguish the two steps during the expansion of a partition.
This commit is contained in:
parent
677c8e828c
commit
46eb175b17
@ -72,7 +72,7 @@ void Partition_dialog::gen_operations(Xml_generator &xml,
|
||||
xml.attribute("text", "Default"); });
|
||||
});
|
||||
if (partition.relabel_in_progress())
|
||||
xml.node("label", [&] () { xml.attribute("text", "In progress..."); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Relabeling in progress..."); });
|
||||
}
|
||||
|
||||
if (!target_in_use && !partition.format_in_progress && partition.checkable()
|
||||
@ -88,7 +88,7 @@ void Partition_dialog::gen_operations(Xml_generator &xml,
|
||||
xml.node("label", [&] () { xml.attribute("text", "Check"); });
|
||||
});
|
||||
if (partition.check_in_progress)
|
||||
xml.node("label", [&] () { xml.attribute("text", "In progress..."); });
|
||||
xml.node("label", [&] () { xml.attribute("text", "Check in progress..."); });
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,10 +110,6 @@ void Partition_dialog::gen_operations(Xml_generator &xml,
|
||||
&& partition.expandable()
|
||||
&& !_operation_item.selected("format");
|
||||
|
||||
bool const progress_msg_visible =
|
||||
(_operation_item.selected("format") && partition.format_in_progress)
|
||||
|| (_operation_item.selected("expand") && partition.expand_in_progress());
|
||||
|
||||
bool const confirm_visible =
|
||||
(_operation_item.selected("format") && !partition.format_in_progress)
|
||||
|| (_operation_item.selected("expand") && !partition.expand_in_progress());
|
||||
@ -146,8 +142,14 @@ void Partition_dialog::gen_operations(Xml_generator &xml,
|
||||
});
|
||||
}
|
||||
|
||||
if (progress_msg_visible)
|
||||
xml.node("label", [&] () { xml.attribute("text", "In progress..."); });
|
||||
if (partition.format_in_progress)
|
||||
xml.node("label", [&] () { xml.attribute("text", "Formatting in progress..."); });
|
||||
|
||||
if (partition.gpt_expand_in_progress)
|
||||
xml.node("label", [&] () { xml.attribute("text", "Expanding partition..."); });
|
||||
|
||||
if (partition.fs_resize_in_progress)
|
||||
xml.node("label", [&] () { xml.attribute("text", "Resizing file system..."); });
|
||||
|
||||
if (confirm_visible) {
|
||||
xml.node("button", [&] () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user