- 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
|
- 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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue