mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-29 05:13:06 -08:00
Persist Always on Top setting
This commit is contained in:
1 parent
bc08913c61
commit
d6b69204a6
3 files changed
+5
No files matched your search
@@ -1831,6 +1831,7 @@ void MainWindow::initViewMenu()
|
||||
});
|
||||
|
||||
connect(m_ui->actionAlwaysOnTop, &QAction::toggled, this, [this](bool checked) {
|
||||
config()->set(Config::GUI_AlwaysOnTop, checked);
|
||||
if (checked) {
|
||||
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
||||
} else {
|
||||
@@ -1838,6 +1839,8 @@ void MainWindow::initViewMenu()
|
||||
}
|
||||
show();
|
||||
});
|
||||
// Set checked after connecting to act on a toggle in state (default state is unchecked)
|
||||
m_ui->actionAlwaysOnTop->setChecked(config()->get(Config::GUI_AlwaysOnTop).toBool());
|
||||
|
||||
m_ui->actionHideUsernames->setChecked(config()->get(Config::GUI_HideUsernames).toBool());
|
||||
connect(m_ui->actionHideUsernames, &QAction::toggled, this, [](bool checked) {
|
||||
|
||||
Reference in new issue
Block a user