diff options
Diffstat (limited to 'repo/nheko/remove-fatal-secrets-error.patch')
-rw-r--r-- | repo/nheko/remove-fatal-secrets-error.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/repo/nheko/remove-fatal-secrets-error.patch b/repo/nheko/remove-fatal-secrets-error.patch new file mode 100644 index 0000000..3db84bd --- /dev/null +++ b/repo/nheko/remove-fatal-secrets-error.patch @@ -0,0 +1,43 @@ +--- a/src/Cache.cpp 2022-06-05 16:42:28.397722089 +0100 ++++ b/src/Cache.cpp 2022-06-05 16:41:12.208727406 +0100 +@@ -328,24 +328,6 @@ + }); + } + +-static void +-fatalSecretError() +-{ +- QMessageBox::critical( +- nullptr, +- QCoreApplication::translate("SecretStorage", "Failed to connect to secret storage"), +- QCoreApplication::translate( +- "SecretStorage", +- "Nheko could not connect to the secure storage to save encryption secrets to. This can " +- "have multiple reasons. Check if your D-Bus service is running and you have configured a " +- "service like KWallet, Gnome Keyring, KeePassXC or the equivalent for your platform. If " +- "you are having trouble, feel free to open an issue here: " +- "https://github.com/Nheko-Reborn/nheko/issues")); +- +- QCoreApplication::exit(1); +- exit(1); +-} +- + static QString + secretName(std::string name, bool internal) + { +@@ -406,7 +388,6 @@ + job->error(), + job->errorString().toStdString()); + +- fatalSecretError(); + } + if (secret.isEmpty()) { + nhlog::db()->debug("Restored empty secret '{}'.", name.toStdString()); +@@ -472,7 +453,6 @@ + if (job->error()) { + nhlog::db()->warn( + "Storing secret '{}' failed: {}", name_, job->errorString().toStdString()); +- fatalSecretError(); + } else { + // if we emit the signal directly, qtkeychain breaks and won't execute new + // jobs. You can't start a job from the finish signal of a job. |