mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
Bug 2419 - Time toolbar: Opening and closing preferences resets format to hh:mm:ss
This commit is contained in:
@@ -76,6 +76,10 @@ void TimeToolBar::Populate()
|
||||
|
||||
// Get the default time format
|
||||
auto format = NumericConverter::HoursMinsSecondsFormat();
|
||||
if (mListener)
|
||||
{
|
||||
format = mListener->TT_GetAudioTimeFormat();
|
||||
}
|
||||
|
||||
// Create the read-only time control
|
||||
mAudioTime = safenew NumericTextCtrl(this, AudioPositionID, NumericConverter::TIME, format, 0.0, rate);
|
||||
|
||||
Reference in New Issue
Block a user