mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-24 23:09:44 -05:00
parent
988bb9c1cd
commit
c112ffc3fc
@ -36,6 +36,7 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
|
||||
{
|
||||
setWindowTitle(tr("Unlock Database - KeePassXC"));
|
||||
setWindowFlags(Qt::Dialog);
|
||||
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||
#ifdef Q_OS_LINUX
|
||||
// Linux requires this to overcome some Desktop Environments (also no Quick Unlock)
|
||||
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
||||
|
@ -1663,9 +1663,11 @@ void MainWindow::applySettingsChanges()
|
||||
void MainWindow::setAllowScreenCapture(bool state)
|
||||
{
|
||||
m_allowScreenCapture = state;
|
||||
for (auto window : qApp->allWindows()) {
|
||||
for (auto window : qApp->topLevelWindows()) {
|
||||
if (window->isVisible()) {
|
||||
osUtils->setPreventScreenCapture(window, !m_allowScreenCapture);
|
||||
}
|
||||
}
|
||||
m_ui->actionAllowScreenCapture->blockSignals(true);
|
||||
m_ui->actionAllowScreenCapture->setChecked(m_allowScreenCapture);
|
||||
m_ui->actionAllowScreenCapture->blockSignals(false);
|
||||
|
Loading…
Reference in New Issue
Block a user