mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-22 22:40:55 -04:00
Drop to background on copy feature
This commit is contained in:
parent
d49e74c1f4
commit
8e248bbde6
9 changed files with 116 additions and 14 deletions
|
@ -59,8 +59,13 @@ TotpDialog::~TotpDialog()
|
|||
void TotpDialog::copyToClipboard()
|
||||
{
|
||||
clipboard()->setText(m_entry->totp());
|
||||
if (config()->get("MinimizeOnCopy").toBool()) {
|
||||
qobject_cast<DatabaseWidget*>(parent())->window()->showMinimized();
|
||||
if (config()->get("HideWindowOnCopy").toBool()) {
|
||||
if (config()->get("MinimizeOnCopy").toBool()) {
|
||||
qobject_cast<DatabaseWidget*>(parent())->window()->showMinimized();
|
||||
} else if (config()->get("DropToBackgroundOnCopy").toBool()) {
|
||||
qobject_cast<DatabaseWidget*>(parent())->window()->lower();
|
||||
window()->lower();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue