1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +02:00

Update status bar field widths in case of language change

This commit is contained in:
Paul Licameli 2019-07-02 20:45:00 -04:00
parent 68999934e0
commit 312911645e
2 changed files with 11 additions and 0 deletions

View File

@ -899,6 +899,12 @@ void ProjectWindow::OnThemeChange(wxCommandEvent& evt)
AdornedRulerPanel::Get( project ).ReCreateButtons();
}
void ProjectWindow::UpdatePrefs()
{
// Update status bar widths in case of language change
UpdateStatusWidths();
}
void ProjectWindow::FinishAutoScroll()
{
// Set a flag so we don't have to generate two update events

View File

@ -14,6 +14,7 @@ Paul Licameli split from AudacityProject.h
#include <memory>
#include <wx/frame.h> // to inherit
#include "TrackPanelListener.h" // to inherit
#include "Prefs.h"
class AudacityProject;
class Track;
@ -25,6 +26,7 @@ class wxPanel;
/// and zooming
class ProjectWindow final : public wxFrame
, public TrackPanelListener
, public PrefsListener
{
public:
static ProjectWindow &Get( AudacityProject &project );
@ -138,6 +140,9 @@ public:
void OnThemeChange(wxCommandEvent & evt);
// PrefsListener implementation
void UpdatePrefs() override;
public:
// Message Handlers