MCPcopy Create free account
hub / github.com/IJHack/QtPass / restoreDialogState

Method restoreDialogState

src/usersdialog.cpp:54–66  ·  view source on GitHub ↗

* @brief Restore dialog geometry from settings. */

Source from the content-addressed store, hash-verified

52 * @brief Restore dialog geometry from settings.
53 */
54void UsersDialog::restoreDialogState() {
55 QByteArray savedGeometry = QtPassSettings::getDialogGeometry("usersDialog");
56 bool hasSavedGeometry = !savedGeometry.isEmpty();
57 if (hasSavedGeometry) {
58 restoreGeometry(savedGeometry);
59 }
60 if (QtPassSettings::isDialogMaximized("usersDialog")) {
61 showMaximized();
62 } else if (hasSavedGeometry) {
63 move(QtPassSettings::getDialogPos("usersDialog"));
64 resize(QtPassSettings::getDialogSize("usersDialog"));
65 }
66}
67
68auto UsersDialog::loadGpgKeys() -> bool {
69 QList<UserInfo> users = QtPassSettings::getPass()->listKeys();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected