Don't show validation result dialog on every key input

Instead of showing dialog, now it relies on icon to show the validation
result.

PR #17391.
This commit is contained in:
Chocobo1
2022-07-21 12:19:58 +08:00
committed by GitHub
parent 3f7376f26b
commit 275387a972
2 changed files with 42 additions and 56 deletions

View File

@@ -77,12 +77,6 @@ class OptionsDialog final : public QDialog, public GUIApplicationComponent
TAB_ADVANCED
};
enum class ShowError
{
NotShow,
Show
};
public:
explicit OptionsDialog(IGUIApplication *app, QWidget *parent = nullptr);
~OptionsDialog() override;
@@ -111,8 +105,8 @@ private slots:
void on_removeWatchedFolderButton_clicked();
void on_registerDNSBtn_clicked();
void setLocale(const QString &localeStr);
void webUIHttpsCertChanged(const Path &path, ShowError showError);
void webUIHttpsKeyChanged(const Path &path, ShowError showError);
void webUIHttpsCertChanged(const Path &path);
void webUIHttpsKeyChanged(const Path &path);
private:
void showEvent(QShowEvent *e) override;