- enhancement: auto restore mainwindow when open files in one instance

This commit is contained in:
Roy Qu 2022-03-21 18:06:47 +08:00
parent 090cccc033
commit da0be0af98
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Red Panda C++ Version 1.0.1
- enhancement: max undo size in option dialog's editor->misc tab - enhancement: max undo size in option dialog's editor->misc tab
- fix: when editor font is too small, fold signs on the gutter are not correctly displayed - fix: when editor font is too small, fold signs on the gutter are not correctly displayed
- fix: expand fold signs on the gutter are not correct - fix: expand fold signs on the gutter are not correct
- enhancement: auto restore mainwindow when open files in one instance
Red Panda C++ Version 1.0.0 Red Panda C++ Version 1.0.0
- fix: calculation for code snippets's tab stop positions is not correct - fix: calculation for code snippets's tab stop positions is not correct

View File

@ -153,6 +153,9 @@ bool WindowLogoutEventFilter::nativeEventFilter(const QByteArray & /*eventType*/
buffer.open(QBuffer::ReadOnly); buffer.open(QBuffer::ReadOnly);
in >> files; in >> files;
sharedMemory.unlock(); sharedMemory.unlock();
if (pMainWindow->isMinimized()) {
pMainWindow->showNormal();
}
pMainWindow->openFiles(files); pMainWindow->openFiles(files);
sharedMemory.detach(); sharedMemory.detach();
} }