diff --git a/NEWS.md b/NEWS.md index bbbc734c..207aa680 100644 --- a/NEWS.md +++ b/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 diff --git a/RedPandaIDE/main.cpp b/RedPandaIDE/main.cpp index 154096b8..b8d5cbea 100644 --- a/RedPandaIDE/main.cpp +++ b/RedPandaIDE/main.cpp @@ -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(); }