mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Load main window initial layout before running python scripts
This commit is contained in:
@@ -89,6 +89,8 @@ CaptureContext::CaptureContext(PersistantConfig &cfg) : m_Config(cfg)
|
||||
|
||||
m_MainWindow = new MainWindow(*this);
|
||||
|
||||
m_MainWindow->LoadInitialLayout();
|
||||
|
||||
{
|
||||
QDir dir(configFilePath("extensions"));
|
||||
|
||||
|
||||
@@ -1534,7 +1534,7 @@ ToolWindowManager::AreaReference MainWindow::leftToolArea()
|
||||
return ToolWindowManager::AreaReference(ToolWindowManager::LastUsedArea);
|
||||
}
|
||||
|
||||
void MainWindow::show()
|
||||
void MainWindow::LoadInitialLayout()
|
||||
{
|
||||
bool loaded = LoadLayout(0);
|
||||
|
||||
@@ -1584,8 +1584,6 @@ void MainWindow::show()
|
||||
ToolWindowManager::AreaReference(ToolWindowManager::TopWindowSide,
|
||||
ui->toolWindowManager->areaOf(textureViewer), 0.2f));
|
||||
}
|
||||
|
||||
QMainWindow::show();
|
||||
}
|
||||
|
||||
void MainWindow::RemoveRecentCapture(const QString &filename)
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
ToolWindowManager::AreaReference mainToolArea();
|
||||
ToolWindowManager::AreaReference leftToolArea();
|
||||
|
||||
void show();
|
||||
void LoadInitialLayout();
|
||||
|
||||
void setProgress(float val);
|
||||
void setRemoteHost(int hostIdx);
|
||||
|
||||
Reference in New Issue
Block a user