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

Method askForDatabaseRemovalFromConfig

src/Client.cpp:595–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void Client::askForDatabaseRemovalFromConfig(QString const& databaseLocation) {
596 // TODO: Make an option for "never"
597 auto const answerButton = QMessageBox::question(this, tr("Forget this database and not ask to open it again?"), tr("The database '%1' could not be opened. Do you want openMittsu to forget this database and not ask you to open it automatically again?\n\nYou can always open it manually using the 'Open...' button in the database section.").arg(databaseLocation));
598 if (answerButton == QMessageBox::Yes) {
599 LOGGER_DEBUG("Removing key \"FILEPATH_DATABASE\" from stored settings as the file+password was invalid.");
600 m_optionMaster->setOption(openmittsu::options::Options::FILEPATH_DATABASE, "");
601 }
602}
603
604bool Client::checkServerGroupInformationForId() {
605 if (m_databaseWrapper.hasDatabase()) {

Callers

nothing calls this directly

Calls 1

setOptionMethod · 0.80

Tested by

no test coverage detected