Drop to background on copy feature
This commit is contained in:
committed by
Jonathan White
parent
d49e74c1f4
commit
8e248bbde6
@@ -99,8 +99,13 @@ TotpExportSettingsDialog::TotpExportSettingsDialog(DatabaseWidget* parent, Entry
|
||||
void TotpExportSettingsDialog::copyToClipboard()
|
||||
{
|
||||
clipboard()->setText(m_totpUri);
|
||||
if (config()->get("MinimizeOnCopy").toBool()) {
|
||||
static_cast<DatabaseWidget*>(parent())->window()->showMinimized();
|
||||
if (config()->get("HideWindowOnCopy").toBool()) {
|
||||
if (config()->get("MinimizeOnCopy").toBool()) {
|
||||
static_cast<DatabaseWidget*>(parent())->window()->showMinimized();
|
||||
} else if (config()->get("DropToBackgroundOnCopy").toBool()) {
|
||||
static_cast<DatabaseWidget*>(parent())->window()->lower();
|
||||
window()->lower();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user