Răsfoiți Sursa

configure_hotkeys: Change critical error dialog into a warning dialog

critical() is intended for critical/fatal errors that threaten the
overall stability of an application. A user entering a conflicting key
sequence is neither of those.
Lioncash 7 ani în urmă
părinte
comite
d61199721d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/yuzu/configuration/configure_hotkeys.cpp

+ 2 - 2
src/yuzu/configuration/configure_hotkeys.cpp

@@ -67,8 +67,8 @@ void ConfigureHotkeys::Configure(QModelIndex index) {
     }
 
     if (IsUsedKey(key_sequence) && key_sequence != QKeySequence(previous_key.toString())) {
-        QMessageBox::critical(this, tr("Error in inputted key"),
-                              tr("You're using a key that's already bound."));
+        QMessageBox::warning(this, tr("Error in inputted key"),
+                             tr("You're using a key that's already bound."));
     } else {
         model->setData(index, key_sequence.toString(QKeySequence::NativeText));
     }