Skip to content

Commit a0a0cf8

Browse files
committed
* FIX:Save windows log status
1 parent 1f39aa9 commit a0a0cf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Editors/XrECore/Editor/EditorPreferences.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void CCustomPreferences::Edit()
199199
// save changed options
200200
}
201201
//---------------------------------------------------------------------------
202-
202+
extern bool bAllowLogCommands;
203203
void CCustomPreferences::Load(CInifile* I)
204204
{
205205
psDeviceFlags.flags = R_U32_SAFE ("editor_prefs","device_flags", psDeviceFlags.flags);
@@ -243,6 +243,8 @@ void CCustomPreferences::Load(CInifile* I)
243243
start_w = R_U32_SAFE("render", "w", 1280);
244244
start_h = R_U32_SAFE("render", "h",800);
245245
start_maximized = R_BOOL_SAFE("render", "maximized", false);
246+
247+
bAllowLogCommands = R_BOOL_SAFE("windows", "log", false);
246248
// read recent list
247249
for (u32 i=0; i<scene_recent_count; i++){
248250
shared_str fn = R_STRING_SAFE ("editor_prefs",xr_string().sprintf("recent_files_%d",i).c_str(),shared_str("") );
@@ -255,6 +257,7 @@ void CCustomPreferences::Load(CInifile* I)
255257
}
256258
sWeather = R_STRING_SAFE ("editor_prefs", "weather", shared_str("") );
257259
// load shortcuts
260+
258261
LoadShortcuts (I);
259262

260263
UI->LoadSettings (I);
@@ -309,6 +312,7 @@ void CCustomPreferences::Save(CInifile* I)
309312
I->w_bool("render", "maximized", EDevice.dwMaximized);
310313
I->w_u32("render", "w", EDevice.dwWidth);
311314
I->w_u32("render", "h", EDevice.dwHeight);
315+
I->w_bool("windows", "log", bAllowLogCommands);
312316
// load shortcuts
313317
SaveShortcuts(I);
314318
UI->SaveSettings(I);

0 commit comments

Comments
 (0)