- 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.
This commit is contained in:
royqh1979 2021-11-06 10:58:18 +08:00
parent ba23aa93af
commit 7e8f73debd
3 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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();
}
}

View File

@ -3,7 +3,7 @@
#include <QStringList>
#define DEVCPP_VERSION "beta.0.8.0"
#define DEVCPP_VERSION "beta.0.8.1"
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
#ifdef Q_OS_WIN