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