update translations

This commit is contained in:
royqh1979 2021-11-09 21:32:23 +08:00
parent 5878f59958
commit 1549fe1aed
4 changed files with 398 additions and 354 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -569,7 +569,7 @@ void MainWindow::applyUISettings()
ui->actionFiles->setChecked(settings.showFiles());
showHideInfosTab(ui->tabFiles,settings.showFiles());
ui->actionProblem_Set->setChecked(settings.showProblemSet());
showHideInfosTab(ui->tabProblem,settings.showProblem());
showHideInfosTab(ui->tabProblemSet,settings.showProblemSet());
ui->actionIssues->setChecked(settings.showIssues());
showHideMessagesTab(ui->tabIssues,settings.showIssues());
@ -5588,7 +5588,7 @@ void MainWindow::on_actionProblem_Set_triggered()
{
bool state = ui->actionProblem_Set->isChecked();
ui->actionProblem_Set->setChecked(state);
showHideInfosTab(ui->tabProblem,state);
showHideInfosTab(ui->tabProblemSet,state);
}

View File

@ -17,6 +17,18 @@ EnvironmentPerformanceWidget::~EnvironmentPerformanceWidget()
void EnvironmentPerformanceWidget::doLoad()
{
ui->chkClearWhenEditorHidden->setChecked(pSettings->codeCompletion().clearWhenEditorHidden());
#ifdef Q_OS_WIN
MEMORYSTATUSEX statex;
statex.dwLength = sizeof (statex);
GlobalMemoryStatusEx (&statex);
if (statex.ullAvailPhys < (long long int)1024*1024*1024) {
ui->chkClearWhenEditorHidden->setEnabled(false);
ui->chkClearWhenEditorHidden->setChecked(true);
pSettings->codeCompletion().setClearWhenEditorHidden(true);
}
#endif
}
void EnvironmentPerformanceWidget::doSave()