mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 03:36:10 +00:00
CEditorApplication: Mark string as translatable
This commit is contained in:
parent
c8db5e2581
commit
6e8b7f4053
@ -226,9 +226,10 @@ bool CEditorApplication::CookAllDirtyPackages()
|
|||||||
|
|
||||||
bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
|
bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
|
||||||
{
|
{
|
||||||
if (!PackageList.isEmpty())
|
if (PackageList.isEmpty())
|
||||||
{
|
return true;
|
||||||
CProgressDialog Dialog("Cooking package" + QString(PackageList.size() > 1 ? "s" : ""), false, true, mpWorldEditor);
|
|
||||||
|
CProgressDialog Dialog(tr("Cooking package%1)").arg(PackageList.size() > 1 ? tr("s") : QString{}), false, true, mpWorldEditor);
|
||||||
|
|
||||||
QFuture<void> Future = QtConcurrent::run([&]()
|
QFuture<void> Future = QtConcurrent::run([&]()
|
||||||
{
|
{
|
||||||
@ -246,8 +247,6 @@ bool CEditorApplication::CookPackageList(QList<CPackage*> PackageList)
|
|||||||
|
|
||||||
emit PackagesCooked();
|
emit PackagesCooked();
|
||||||
return !Dialog.ShouldCancel();
|
return !Dialog.ShouldCancel();
|
||||||
}
|
|
||||||
else return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CEditorApplication::HasAnyDirtyPackages()
|
bool CEditorApplication::HasAnyDirtyPackages()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user