Drop to background on copy feature

This commit is contained in:
Balazs Gyurak
2019-06-09 19:15:02 +01:00
committed by Jonathan White
parent d49e74c1f4
commit 8e248bbde6
9 changed files with 116 additions and 14 deletions

View File

@@ -625,8 +625,12 @@ void DatabaseWidget::showTotpKeyQrCode()
void DatabaseWidget::setClipboardTextAndMinimize(const QString& text)
{
clipboard()->setText(text);
if (config()->get("MinimizeOnCopy").toBool()) {
window()->showMinimized();
if (config()->get("HideWindowOnCopy").toBool()) {
if (config()->get("MinimizeOnCopy").toBool()) {
window()->showMinimized();
} else if (config()->get("DropToBackgroundOnCopy").toBool()) {
window()->lower();
}
}
}