mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-17 14:00:36 -04:00
parent
a55bb39f20
commit
c2f36d877f
2 changed files with 22 additions and 0 deletions
|
@ -1757,4 +1757,14 @@ void MainWindow::initViewMenu()
|
||||||
connect(m_ui->actionShowPreviewPanel, &QAction::toggled, this, [](bool checked) {
|
connect(m_ui->actionShowPreviewPanel, &QAction::toggled, this, [](bool checked) {
|
||||||
config()->set(Config::GUI_HidePreviewPanel, !checked);
|
config()->set(Config::GUI_HidePreviewPanel, !checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(m_ui->actionAlwaysOnTop, &QAction::toggled, this, [this](bool checked) {
|
||||||
|
if (checked) {
|
||||||
|
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
||||||
|
} else {
|
||||||
|
setWindowFlags(windowFlags() & ~Qt::WindowStaysOnTopHint);
|
||||||
|
}
|
||||||
|
show();
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -381,6 +381,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuTheme"/>
|
<addaction name="menuTheme"/>
|
||||||
<addaction name="actionCompactMode"/>
|
<addaction name="actionCompactMode"/>
|
||||||
|
<addaction name="actionAlwaysOnTop"/>
|
||||||
<addaction name="actionShowPreviewPanel"/>
|
<addaction name="actionShowPreviewPanel"/>
|
||||||
<addaction name="actionShowToolbar"/>
|
<addaction name="actionShowToolbar"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -972,6 +973,17 @@
|
||||||
<string>Show Preview Panel</string>
|
<string>Show Preview Panel</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionAlwaysOnTop">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Always on Top</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string notr="true">Ctrl+Shift+A</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue