mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
ClockSettings: Set window modified state
This commit is contained in:
committed by
Andreas Kling
parent
f27985a021
commit
57bac17b9f
Notes:
sideshowbarker
2024-07-17 12:01:08 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/57bac17b9f Pull-request: https://github.com/SerenityOS/serenity/pull/14006 Reviewed-by: https://github.com/MacDue
@@ -50,6 +50,9 @@ TimeZoneSettingsWidget::TimeZoneSettingsWidget()
|
||||
m_time_zone_combo_box->set_only_allow_values_from_model(true);
|
||||
m_time_zone_combo_box->set_model(*StringViewListModel::create(time_zones));
|
||||
m_time_zone_combo_box->set_text(m_time_zone);
|
||||
m_time_zone_combo_box->on_change = [&](auto, auto) {
|
||||
set_modified(true);
|
||||
};
|
||||
|
||||
auto time_zone_map_bitmap = Gfx::Bitmap::try_load_from_file("/res/graphics/map.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
auto time_zone_rect = time_zone_map_bitmap->rect().shrunken(TIME_ZONE_MAP_NORTHERN_TRIM, 0, TIME_ZONE_MAP_SOUTHERN_TRIM, 0);
|
||||
|
||||
Reference in New Issue
Block a user