* @brief Restore dialog geometry from settings. */
| 52 | * @brief Restore dialog geometry from settings. |
| 53 | */ |
| 54 | void 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 | |
| 68 | auto UsersDialog::loadGpgKeys() -> bool { |
| 69 | QList<UserInfo> users = QtPassSettings::getPass()->listKeys(); |
nothing calls this directly
no outgoing calls
no test coverage detected