fix: settings "Cancel" button doesn't work first time (#5229)
This commit is contained in:
@@ -87,11 +87,6 @@ void SettingsPage::setTab(SettingsDialogTab *tab)
|
||||
this->tab_ = tab;
|
||||
}
|
||||
|
||||
void SettingsPage::cancel()
|
||||
{
|
||||
this->onCancel_.invoke();
|
||||
}
|
||||
|
||||
QCheckBox *SettingsPage::createCheckBox(
|
||||
const QString &text, pajlada::Settings::Setting<bool> &setting)
|
||||
{
|
||||
|
||||
@@ -56,8 +56,6 @@ public:
|
||||
SettingsDialogTab *tab() const;
|
||||
void setTab(SettingsDialogTab *tab);
|
||||
|
||||
void cancel();
|
||||
|
||||
QCheckBox *createCheckBox(const QString &text,
|
||||
pajlada::Settings::Setting<bool> &setting);
|
||||
QComboBox *createComboBox(const QStringList &items,
|
||||
@@ -86,7 +84,6 @@ public:
|
||||
|
||||
protected:
|
||||
SettingsDialogTab *tab_{};
|
||||
pajlada::Signals::NoArgSignal onCancel_;
|
||||
pajlada::Signals::SignalHolder managedConnections_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user