1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 09:03:54 +01:00

Free ScrubbingToolBar from cycles...

... by having it update itself in idle time, not needing a push from Scrubber

Shrinking that remnant of the big strongly connected component to 6
This commit is contained in:
Paul Licameli
2019-07-01 08:11:25 -04:00
parent 3e3cf24c01
commit 192530d8a5
3 changed files with 9 additions and 6 deletions

View File

@@ -30,7 +30,6 @@ Paul Licameli split from TrackPanel.cpp
#include "../../prefs/PlaybackPrefs.h"
#include "../../prefs/TracksPrefs.h"
#include "../../toolbars/ControlToolBar.h"
#include "../../toolbars/ScrubbingToolBar.h"
#include "../../toolbars/ToolManager.h"
#undef USE_TRANSCRIPTION_TOOLBAR
@@ -1120,10 +1119,6 @@ void Scrubber::OnScrubOrSeek(bool seek)
auto &ruler = AdornedRulerPanel::Get( *mProject );
// Update button images
ruler.UpdateButtonStates();
auto scrubbingToolBar = &ScrubbingToolBar::Get( *mProject );
scrubbingToolBar->EnableDisableButtons();
scrubbingToolBar->RegenerateTooltips();
}
void Scrubber::OnScrub(const CommandContext&)