Bugfix: 'Save all' was not updating the dirty state in the panel tabs

This commit is contained in:
Matthias Koefferlein 2025-03-02 22:12:18 +01:00
parent 414a06c70f
commit 2e150980d5
2 changed files with 15 additions and 13 deletions

View File

@ -3788,21 +3788,25 @@ LayoutViewBase::timer ()
emit_dirty_changed (); emit_dirty_changed ();
} }
if (m_prop_changed) { if (is_activated ()) {
do_prop_changed ();
m_prop_changed = false;
}
tl::Clock current_time = tl::Clock::current (); if (m_prop_changed) {
if ((current_time - m_last_checked).seconds () > animation_interval) { do_prop_changed ();
m_last_checked = current_time; m_prop_changed = false;
if (m_animated) { }
set_view_ops ();
do_set_phase (int (m_phase)); tl::Clock current_time = tl::Clock::current ();
if ((current_time - m_last_checked).seconds () > animation_interval) {
m_last_checked = current_time;
if (m_animated) { if (m_animated) {
++m_phase; set_view_ops ();
do_set_phase (int (m_phase));
if (m_animated) {
++m_phase;
}
} }
} }
} }
} }

View File

@ -1459,7 +1459,6 @@ LayoutView::activate ()
(*p)->browser_interface ()->show (); (*p)->browser_interface ()->show ();
} }
} }
mp_timer->start (timer_interval);
m_activated = true; m_activated = true;
update_content (); update_content ();
} }
@ -1479,7 +1478,6 @@ LayoutView::deactivate ()
} }
free_resources (); free_resources ();
mp_timer->stop ();
m_activated = false; m_activated = false;
} }