void Settings_init() { // first, check if we have any saved settings // int settingsVersion = persist_read_int(SETTINGS_VERSION_KEY); // load all settings Settings_loadFromStorage(); }
void Settings_init() { // first, check if we have any saved settings int settingsVersion = persist_read_int(SETTINGS_VERSION_KEY); // load all settings Settings_loadFromStorage(); // for BW watches, reset colors to defaults #ifndef PBL_COLOR if(settingsVersion < CURRENT_SETTINGS_VERSION) { globalSettings.timeColor = GColorWhite; globalSettings.sidebarColor = GColorWhite; globalSettings.timeBgColor = GColorBlack; globalSettings.sidebarTextColor = GColorBlack; } #endif }