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