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