diff --git a/NEWS.md b/NEWS.md index cb4e26b6..8398ff76 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ Version 0.8.1 For Dev-C++ 7 Beta - fix: ConsolePaurser.exe only exits when press ENTER - fix: input/output/expected textedit in the problem view shouldn't autowrap lines - fix: Red Panda C++ will freeze when receiving contents from Competitve Companion in chrome/edge + - enhancement: when problem from competitive companion received, activate RedPanda C++ if it's minimized. + - enhancement: when problem from competitive companion received, show the problem and problem set views. Version 0.8 For Dev-C++ 7 Beta - fix: find in the current file is not correcly saved in the search history diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index b87f858a..4fa2d309 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2743,9 +2743,13 @@ void MainWindow::onNewProblemConnection() problem->cases.append(problemCase); } mOJProblemSetModel.addProblem(problem); - if (!ui->lstProblemSet->currentIndex().isValid()) { - ui->lstProblemSet->setCurrentIndex(mOJProblemSetModel.index(0,0)); - } + ui->tabInfos->setCurrentWidget(ui->tabProblemSet); + ui->lstProblemSet->setCurrentIndex(mOJProblemSetModel.index( + mOJProblemSetModel.count()-1 + ,0)); + showNormal(); + raise(); // for mac OS? + activateWindow(); } } diff --git a/RedPandaIDE/systemconsts.h b/RedPandaIDE/systemconsts.h index 2cd1c472..5490c26c 100644 --- a/RedPandaIDE/systemconsts.h +++ b/RedPandaIDE/systemconsts.h @@ -3,7 +3,7 @@ #include -#define DEVCPP_VERSION "beta.0.8.0" +#define DEVCPP_VERSION "beta.0.8.1" #define APP_SETTSINGS_FILENAME "redpandacpp.ini" #ifdef Q_OS_WIN