mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-04 22:33:47 -04:00
dBV is actually mislabeled dBFS (#3095)
* Relabel "dBV" to "dBFS" in function names and GUI * Write a ConfigManager upgrade for older versions
This commit is contained in:
committed by
Tres Finocchiaro
parent
3d43937bf3
commit
c9618961d6
@@ -1200,10 +1200,10 @@ void MainWindow::updateViewMenu()
|
||||
// that is safe to change on the fly. There is probably some
|
||||
// more elegant way to do this.
|
||||
QAction *qa;
|
||||
qa = new QAction(tr( "Volume as dBV" ), this);
|
||||
qa->setData("displaydbv");
|
||||
qa = new QAction(tr( "Volume as dBFS" ), this);
|
||||
qa->setData("displaydbfs");
|
||||
qa->setCheckable( true );
|
||||
qa->setChecked( ConfigManager::inst()->value( "app", "displaydbv" ).toInt() );
|
||||
qa->setChecked( ConfigManager::inst()->value( "app", "displaydbfs" ).toInt() );
|
||||
m_viewMenu->addAction(qa);
|
||||
|
||||
// Maybe this is impossible?
|
||||
@@ -1244,9 +1244,9 @@ void MainWindow::updateConfig( QAction * _who )
|
||||
QString tag = _who->data().toString();
|
||||
bool checked = _who->isChecked();
|
||||
|
||||
if( tag == "displaydbv" )
|
||||
if( tag == "displaydbfs" )
|
||||
{
|
||||
ConfigManager::inst()->setValue( "app", "displaydbv",
|
||||
ConfigManager::inst()->setValue( "app", "displaydbfs",
|
||||
QString::number(checked) );
|
||||
}
|
||||
else if ( tag == "tooltips" )
|
||||
|
||||
Reference in New Issue
Block a user