mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
clear search field when reopening settings
This commit is contained in:
parent
0c1da59564
commit
05bcf22af4
2 changed files with 6 additions and 0 deletions
|
@ -285,6 +285,11 @@ void SettingsDialog::themeChangedEvent()
|
||||||
this->setPalette(palette);
|
this->setPalette(palette);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SettingsDialog::showEvent(QShowEvent *)
|
||||||
|
{
|
||||||
|
this->ui_.search->setText("");
|
||||||
|
}
|
||||||
|
|
||||||
///// Widget creation helpers
|
///// Widget creation helpers
|
||||||
void SettingsDialog::onOkClicked()
|
void SettingsDialog::onOkClicked()
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,6 +39,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
virtual void scaleChangedEvent(float newDpi) override;
|
virtual void scaleChangedEvent(float newDpi) override;
|
||||||
virtual void themeChangedEvent() override;
|
virtual void themeChangedEvent() override;
|
||||||
|
virtual void showEvent(QShowEvent *) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static SettingsDialog *handle;
|
static SettingsDialog *handle;
|
||||||
|
|
Loading…
Reference in a new issue