- enhancement: auto restore mainwindow when open files in one instance
This commit is contained in:
parent
090cccc033
commit
da0be0af98
1
NEWS.md
1
NEWS.md
|
@ -11,6 +11,7 @@ Red Panda C++ Version 1.0.1
|
|||
- 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: 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
|
||||
- fix: calculation for code snippets's tab stop positions is not correct
|
||||
|
|
|
@ -153,6 +153,9 @@ bool WindowLogoutEventFilter::nativeEventFilter(const QByteArray & /*eventType*/
|
|||
buffer.open(QBuffer::ReadOnly);
|
||||
in >> files;
|
||||
sharedMemory.unlock();
|
||||
if (pMainWindow->isMinimized()) {
|
||||
pMainWindow->showNormal();
|
||||
}
|
||||
pMainWindow->openFiles(files);
|
||||
sharedMemory.detach();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue