summaryrefslogtreecommitdiff
path: root/Userland/Applications/MailSettings
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-05-11 17:40:47 +0100
committerAndreas Kling <kling@serenityos.org>2022-05-12 13:10:49 +0200
commitc7d038cc260417028aa7570a039a3a6efb9a1811 (patch)
treea53defd43b6e94d370d0ad40ec8539134e4273ed /Userland/Applications/MailSettings
parentab2bbaabc774656a3fb7a75da29a77919efa83e8 (diff)
downloadserenity-c7d038cc260417028aa7570a039a3a6efb9a1811.zip
MailSettings: Set window modified state
Diffstat (limited to 'Userland/Applications/MailSettings')
-rw-r--r--Userland/Applications/MailSettings/MailSettingsWidget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Applications/MailSettings/MailSettingsWidget.cpp b/Userland/Applications/MailSettings/MailSettingsWidget.cpp
index b781b721ad..deb1da6393 100644
--- a/Userland/Applications/MailSettings/MailSettingsWidget.cpp
+++ b/Userland/Applications/MailSettings/MailSettingsWidget.cpp
@@ -46,15 +46,27 @@ MailSettingsWidget::MailSettingsWidget()
m_server_inputbox = *find_descendant_of_type_named<GUI::TextBox>("server_input");
m_server_inputbox->set_text(Config::read_string("Mail", "Connection", "Server", ""));
+ m_server_inputbox->on_change = [&]() {
+ set_modified(true);
+ };
m_port_combobox = *find_descendant_of_type_named<GUI::ComboBox>("port_input");
m_port_combobox->set_text(Config::read_string("Mail", "Connection", "Port", "993"));
m_port_combobox->set_only_allow_values_from_model(false);
m_port_combobox->set_model(*GUI::ItemListModel<String>::create(m_common_ports));
+ m_port_combobox->on_change = [&](auto, auto) {
+ set_modified(true);
+ };
m_tls_checkbox = *find_descendant_of_type_named<GUI::CheckBox>("tls_input");
m_tls_checkbox->set_checked(Config::read_bool("Mail", "Connection", "TLS", false));
+ m_tls_checkbox->on_checked = [&](auto) {
+ set_modified(true);
+ };
m_email_inputbox = *find_descendant_of_type_named<GUI::TextBox>("email_input");
m_email_inputbox->set_text(Config::read_string("Mail", "User", "Username", ""));
+ m_email_inputbox->on_change = [&]() {
+ set_modified(true);
+ };
}