mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-25 12:23:36 +01:00
Add config migration
This commit is contained in:
parent
714c306032
commit
fe43c1dd01
@ -26,7 +26,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#define VERSION 1
|
#define VERSION 2
|
||||||
|
|
||||||
TomahawkSettings* TomahawkSettings::s_instance = 0;
|
TomahawkSettings* TomahawkSettings::s_instance = 0;
|
||||||
|
|
||||||
@ -55,6 +55,9 @@ TomahawkSettings::TomahawkSettings( QObject* parent )
|
|||||||
|
|
||||||
// insert upgrade code here as required
|
// insert upgrade code here as required
|
||||||
setValue( "configversion", VERSION );
|
setValue( "configversion", VERSION );
|
||||||
|
if( contains( "script/resolvers") ) {
|
||||||
|
setValue( "script/loadedresolvers", value( "script/resolvers" ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user