fix: don't clear symbol table when minimized
This commit is contained in:
parent
d438864a4d
commit
ca4687c7cd
|
@ -1279,10 +1279,10 @@ void Editor::closeEvent(QCloseEvent *)
|
||||||
|
|
||||||
void Editor::showEvent(QShowEvent */*event*/)
|
void Editor::showEvent(QShowEvent */*event*/)
|
||||||
{
|
{
|
||||||
if (pSettings->codeCompletion().clearWhenEditorHidden()
|
// if (pSettings->codeCompletion().clearWhenEditorHidden()
|
||||||
&& !inProject()) {
|
// && !inProject()) {
|
||||||
initParser();
|
//// initParser();
|
||||||
}
|
// }
|
||||||
if (mParser && !pMainWindow->isClosingAll()
|
if (mParser && !pMainWindow->isClosingAll()
|
||||||
&& !pMainWindow->isQuitting()
|
&& !pMainWindow->isQuitting()
|
||||||
&& !mParser->isFileParsed(mFilename)
|
&& !mParser->isFileParsed(mFilename)
|
||||||
|
@ -1311,8 +1311,10 @@ void Editor::hideEvent(QHideEvent */*event*/)
|
||||||
&SynEdit::invalidate);
|
&SynEdit::invalidate);
|
||||||
}
|
}
|
||||||
if (pSettings->codeCompletion().clearWhenEditorHidden()
|
if (pSettings->codeCompletion().clearWhenEditorHidden()
|
||||||
&& !inProject() && mParser)
|
&& !inProject() && mParser
|
||||||
|
&& !pMainWindow->isMinimized()) {
|
||||||
mParser->reset();
|
mParser->reset();
|
||||||
|
}
|
||||||
setHideTime(QDateTime::currentDateTime());
|
setHideTime(QDateTime::currentDateTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3886,7 +3886,7 @@ void Settings::CodeCompletion::doLoad()
|
||||||
statex.dwLength = sizeof (statex);
|
statex.dwLength = sizeof (statex);
|
||||||
|
|
||||||
GlobalMemoryStatusEx (&statex);
|
GlobalMemoryStatusEx (&statex);
|
||||||
if (statex.ullAvailPhys > (long long int)3*1024*1024*1024) {
|
if (statex.ullAvailPhys > (long long int)10*1024*1024*1024) {
|
||||||
doClear = false;
|
doClear = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue