Add Project name to Editor Window title (#1565)
This commit is contained in:
@@ -30,6 +30,7 @@ AZ_POP_DISABLE_WARNING
|
||||
#include <AzCore/Component/ComponentApplication.h>
|
||||
#include <AzCore/Settings/SettingsRegistryMergeUtils.h>
|
||||
#include <AzCore/Interface/Interface.h>
|
||||
#include <AzCore/Utils/Utils.h>
|
||||
|
||||
// AzFramework
|
||||
#include <AzFramework/API/ApplicationAPI.h>
|
||||
@@ -1275,7 +1276,7 @@ void MainWindow::OnEditorNotifyEvent(EEditorNotifyEvent ev)
|
||||
auto cryEdit = CCryEditApp::instance();
|
||||
if (cryEdit)
|
||||
{
|
||||
cryEdit->SetEditorWindowTitle(0, 0, GetIEditor()->GetGameEngine()->GetLevelName());
|
||||
cryEdit->SetEditorWindowTitle(0, AZ::Utils::GetProjectName().c_str(), GetIEditor()->GetGameEngine()->GetLevelName());
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1284,7 +1285,7 @@ void MainWindow::OnEditorNotifyEvent(EEditorNotifyEvent ev)
|
||||
auto cryEdit = CCryEditApp::instance();
|
||||
if (cryEdit)
|
||||
{
|
||||
cryEdit->SetEditorWindowTitle();
|
||||
cryEdit->SetEditorWindowTitle(0, AZ::Utils::GetProjectName().c_str(), 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user