[ui] Simplify error dialog titles and capitalize first letters

This commit is contained in:
Candice Bentéjac 2024-04-05 18:06:23 +02:00
parent dea13eb48a
commit 04a7191b15
3 changed files with 5 additions and 5 deletions

View file

@ -747,7 +747,7 @@ Item {
icon.text: MaterialIcons.error icon.text: MaterialIcons.error
icon.color: "#F44336" icon.color: "#F44336"
title: "Different types of files" title: "Different File Types"
text: "Do not mix .mg files and other types of files." text: "Do not mix .mg files and other types of files."
standardButtons: Dialog.Ok standardButtons: Dialog.Ok

View file

@ -481,13 +481,13 @@ Panel {
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
text: { text: {
if (nbMeshroomScenes != nbDraggedFiles && nbMeshroomScenes != 0) { if (nbMeshroomScenes != nbDraggedFiles && nbMeshroomScenes != 0) {
return "Do not mix project and images" return "Cannot Add Projects And Images Together"
} }
if (nbMeshroomScenes == 1 && nbMeshroomScenes == nbDraggedFiles) { if (nbMeshroomScenes == 1 && nbMeshroomScenes == nbDraggedFiles) {
return "Load Project" return "Load Project"
} else if (nbMeshroomScenes == nbDraggedFiles) { } else if (nbMeshroomScenes == nbDraggedFiles) {
return "Only one project" return "Only One Project"
} else { } else {
return "Add Images" return "Add Images"
} }
@ -936,7 +936,7 @@ Panel {
icon.text: MaterialIcons.error icon.text: MaterialIcons.error
icon.color: "#F44336" icon.color: "#F44336"
title: "Different types of files" title: "Different File Types"
text: "Do not mix .mg files and other types of files." text: "Do not mix .mg files and other types of files."
standardButtons: Dialog.Ok standardButtons: Dialog.Ok

View file

@ -789,7 +789,7 @@ class Reconstruction(UIGraph):
if len(filesByType["meshroomScenes"]) > 1: if len(filesByType["meshroomScenes"]) > 1:
self.error.emit( self.error.emit(
Message( Message(
"Too many Meshroom Scenes", "Too Many Meshroom Scenes",
"A single Meshroom scene (.mg file) can be imported at once." "A single Meshroom scene (.mg file) can be imported at once."
) )
) )