MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / menuIdentityShowPublicKeyOnClick

Method menuIdentityShowPublicKeyOnClick

src/Client.cpp:1222–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220}
1221
1222void Client::menuIdentityShowPublicKeyOnClick() {
1223 if (!m_databaseWrapper.hasDatabase()) {
1224 QMessageBox::warning(this, "No database loaded", "Before you can use this feature you need to load a database from file (see main screen) or create one using a backup of your existing ID (see Identity -> Load Backup).");
1225 } else {
1226 std::shared_ptr<openmittsu::backup::IdentityBackup> const backupData = m_databaseWrapper.getBackup();
1227 openmittsu::dialogs::ShowIdentityAndPublicKeyDialog showIdentityAndPublicKeyDialog(backupData->getClientContactId(), backupData->getClientLongTermKeyPair(), this);
1228 showIdentityAndPublicKeyDialog.exec();
1229 }
1230}
1231
1232void Client::menuIdentityCreateBackupOnClick() {
1233 if (!m_databaseWrapper.hasDatabase()) {

Callers

nothing calls this directly

Calls 2

hasDatabaseMethod · 0.80
getBackupMethod · 0.45

Tested by

no test coverage detected