Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-25 19:53:21 (14 years 3 months ago)
Author:Rekursor
Commit:55
Parents: 54
Message:Fixed reload of prefs not working regression since engine mods
Changes:
M/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm

File differences

trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm
169169
170170
171171
172
173
172174
173175
174176
......
181183
182184
183185
184
185186
186187
187188
//PrefsProp::instance().open([kPreferencesFilePath UTF8String], CreateIfNotExist,
// [self auth]);
// test with preferences file already created and when no prefs exists
id oldGlobalPreferences = [ [NSDictionary dictionaryWithContentsOfFile:
kPreferencesFilePath ] retain];
if (oldGlobalPreferences!=nil)
{
mPreferenceFileVersion= [[oldGlobalPreferences objectForKey: keyPreferencesFileVersion] intValue ];
[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];
[PreferencesControllerBase doForEachGroup: LoadPreferencesOptions withOption: oldGlobalPreferences];
[mPartitionsDict addEntriesFromDictionary: [oldGlobalPreferences objectForKey: keyPartitionsList] ];
}

Archive Download the corresponding diff file

Revision: 55