mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-08 20:11:16 -05:00
Persist Always on Top setting
This commit is contained in:
parent
bc08913c61
commit
d6b69204a6
3 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue