[nostalgia/studio] Fix to clear open tabs before opening them on start
This commit is contained in:
parent
b1d94782db
commit
2ba051906a
@ -313,6 +313,8 @@ void MainWindow::openProject(QString projectPath) {
|
||||
m_state.projectPath = projectPath;
|
||||
// reopen tabs
|
||||
auto openTabs = readTabs();
|
||||
// clear open tabs
|
||||
writeTabs({});
|
||||
for (auto t : openTabs) {
|
||||
try {
|
||||
openFile(t, true);
|
||||
|
Loading…
Reference in New Issue
Block a user