mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
HackStudio: Update window close button on document change
This commit is contained in:
parent
1e65e916fc
commit
14751a4122
Notes:
sideshowbarker
2024-07-17 11:30:21 +09:00
Author: https://github.com/timre13
Commit: 14751a4122
Pull-request: https://github.com/SerenityOS/serenity/pull/13697
Issue: https://github.com/SerenityOS/serenity/issues/13285
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,7 @@ bool HackStudioWidget::open_file(String const& full_filename, size_t line, size_
|
|||
current_editor().set_focus(true);
|
||||
|
||||
current_editor().on_cursor_change = [this] { on_cursor_change(); };
|
||||
current_editor().on_change = [this] { update_window_title(); };
|
||||
current_editor_wrapper().on_change = [this] { update_gml_preview(); };
|
||||
current_editor().set_cursor(line, column);
|
||||
update_gml_preview();
|
||||
|
@ -1588,6 +1589,7 @@ void HackStudioWidget::update_tree_view()
|
|||
void HackStudioWidget::update_window_title()
|
||||
{
|
||||
window()->set_title(String::formatted("{} - {} - Hack Studio", m_current_editor_wrapper->filename_title(), m_project->name()));
|
||||
window()->set_modified(any_document_is_dirty());
|
||||
}
|
||||
|
||||
void HackStudioWidget::update_current_editor_title()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue