Layer toolbar visible by default. Grafx2 now records which toolbars are visible on exit, and restores them next time.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1327 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-02-08 18:58:42 +00:00
parent b0a700850f
commit 6f08d59f01
8 changed files with 68 additions and 32 deletions

View File

@@ -877,6 +877,17 @@ int Load_INI(T_Config * conf)
break;
}
}
// Optional, Menu bars visibility (> 2.1)
if (!Load_INI_get_values (file, buffer,"Menubars_visible",1,values))
{
int index;
for (index=MENUBAR_STATUS+1; index<MENUBAR_COUNT;index++)
{
// Note that I skip the status bar, always enabled.
Menu_bars[index].Visible = (values[0] & (1<<index)) ? 1 : 0;
}
}
fclose(file);