mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Correct timing issue with entry level Auto-Type on some platforms
* Fixes #7584
This commit is contained in:
parent
75e857bbfc
commit
eac60b3228
@ -297,8 +297,6 @@ void AutoType::executeAutoTypeActions(const Entry* entry,
|
||||
getMainWindow()->minimizeOrHide();
|
||||
}
|
||||
#endif
|
||||
QCoreApplication::processEvents();
|
||||
window = m_plugin->activeWindow();
|
||||
} else {
|
||||
// Restore window state (macOS only) then raise the target window
|
||||
restoreWindowState();
|
||||
@ -312,6 +310,11 @@ void AutoType::executeAutoTypeActions(const Entry* entry,
|
||||
int delay = qMax(100, config()->get(Config::AutoTypeStartDelay).toInt());
|
||||
Tools::wait(delay);
|
||||
|
||||
// Grab the current active window after everything settles
|
||||
if (window == 0) {
|
||||
window = m_plugin->activeWindow();
|
||||
}
|
||||
|
||||
for (const auto& action : asConst(actions)) {
|
||||
if (m_plugin->activeWindow() != window) {
|
||||
qWarning("Active window changed, interrupting auto-type.");
|
||||
|
Loading…
Reference in New Issue
Block a user