mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 23:38:53 -07:00
Remove dash if print job name is empty
Otherwise it shows ' - Ultimaker Cura' here which looks a bit weird.
This commit is contained in:
parent
2a28321588
commit
122b6318fe
1 changed files with 11 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2019 Ultimaker B.V.
|
// Copyright (c) 2020 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
|
|
@ -21,7 +21,16 @@ UM.MainWindow
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
// Cura application window title
|
// Cura application window title
|
||||||
title: PrintInformation.jobName + " - " + catalog.i18nc("@title:window", CuraApplication.applicationDisplayName)
|
title:
|
||||||
|
{
|
||||||
|
let result = "";
|
||||||
|
if(PrintInformation.jobName != "")
|
||||||
|
{
|
||||||
|
result += PrintInformation.jobName + " - ";
|
||||||
|
}
|
||||||
|
result += CuraApplication.applicationDisplayName;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
backgroundColor: UM.Theme.getColor("viewport_background")
|
backgroundColor: UM.Theme.getColor("viewport_background")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue