mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:35:54 +08: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,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…
x
Reference in New Issue
Block a user