diff --git a/resources/qml/Sidebar.qml b/resources/qml/Sidebar.qml index 383c599da8..31bda45b56 100644 --- a/resources/qml/Sidebar.qml +++ b/resources/qml/Sidebar.qml @@ -343,7 +343,6 @@ Rectangle onEntered: { - if(base.printDuration.valid && !base.printDuration.isTotalDurationZero) { // All the time information for the different features is achieved @@ -356,20 +355,10 @@ Rectangle { if(!print_time[feature].isTotalDurationZero) { - var feature_name = ""; - - if (feature.length <= 11) - { - feature_name = feature - } - else{ - feature_name = feature.substring(0, 8) + "..." - } - - - content += "" + feature_name + ":" + - "  " + print_time[feature].getDisplayString(UM.DurationFormat.Short) + - "  " + Math.round(100 * parseInt(print_time[feature].getDisplayString(UM.DurationFormat.Seconds)) / total_seconds) + "%" + + content += "" + feature + "" + + "" + + "" + print_time[feature].getDisplayString(UM.DurationFormat.Short) + "" + + "  " + Math.round(100 * parseInt(print_time[feature].getDisplayString(UM.DurationFormat.Seconds)) / total_seconds) + "%" + ""; } }