Increase the time interval for window show workaround

When the keepassxc window is shown something generetes a hide event, and it is hidden again immediately.

The 50ms interval for avoiding hiding the window when shown is not enough, even on modern systems.

Make the interval longer.
This commit is contained in:
Michal Suchanek 2024-06-20 10:36:32 +02:00 committed by Jonathan White
parent 1de0da3d44
commit a0b8abecb8
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -1817,7 +1817,7 @@ void MainWindow::hide()
{
#ifndef Q_OS_WIN
qint64 current_time = Clock::currentMilliSecondsSinceEpoch();
if (current_time - m_lastShowTime < 50) {
if (current_time - m_lastShowTime < 250) {
return;
}
#endif