[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;
|
m_state.projectPath = projectPath;
|
||||||
// reopen tabs
|
// reopen tabs
|
||||||
auto openTabs = readTabs();
|
auto openTabs = readTabs();
|
||||||
|
// clear open tabs
|
||||||
|
writeTabs({});
|
||||||
for (auto t : openTabs) {
|
for (auto t : openTabs) {
|
||||||
try {
|
try {
|
||||||
openFile(t, true);
|
openFile(t, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user