Make future toolbars visible by default

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1330 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-02-08 23:16:12 +00:00
parent 1f672681bc
commit 7bccc7dda2
2 changed files with 6 additions and 1 deletions

View File

@ -354,6 +354,6 @@
; This records the visibility of toolbars, to restore them on start.
; It's a bitfield, where 1=Status, 2=Layers, 4=Tools
;
Menubars_visible = 7; (Default 7)
Menubars_visible = 255; (Default 255)
; end of configuration

View File

@ -665,6 +665,11 @@ int Save_INI(T_Config * conf)
{
values[0] |= Menu_bars[index].Visible ? (1<<index) : 0;
}
// Fill out the remaining bits. When new toolbars get implemented, they will
// be visible by default.
for (; index<8;index++)
values[0] |= (1<<index);
if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Menubars_visible",1,values,0)))
goto Erreur_Retour;