Almost all global settings wrapped in protective object to guarantee type safety and protect against tag spelling errors (I have found and corrected a lot of those!).
Joystick settings and burner configuration is not yet within the global object.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <QtGui>
|
||||
#include "appdata.h"
|
||||
#include "helpers.h"
|
||||
|
||||
QString getPhaseName(int val, char * phasename)
|
||||
@@ -913,8 +914,7 @@ QString getCenterBeep(ModelData * g_model)
|
||||
|
||||
QString getTheme()
|
||||
{
|
||||
QSettings settings;
|
||||
int theme_set = settings.value("theme", 1).toInt();
|
||||
int theme_set = glob.theme();
|
||||
QString Theme;
|
||||
switch(theme_set) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user