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:
parent
1f672681bc
commit
7bccc7dda2
@ -354,6 +354,6 @@
|
|||||||
; This records the visibility of toolbars, to restore them on start.
|
; This records the visibility of toolbars, to restore them on start.
|
||||||
; It's a bitfield, where 1=Status, 2=Layers, 4=Tools
|
; It's a bitfield, where 1=Status, 2=Layers, 4=Tools
|
||||||
;
|
;
|
||||||
Menubars_visible = 7; (Default 7)
|
Menubars_visible = 255; (Default 255)
|
||||||
|
|
||||||
; end of configuration
|
; end of configuration
|
||||||
|
|||||||
@ -665,6 +665,11 @@ int Save_INI(T_Config * conf)
|
|||||||
{
|
{
|
||||||
values[0] |= Menu_bars[index].Visible ? (1<<index) : 0;
|
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)))
|
if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Menubars_visible",1,values,0)))
|
||||||
goto Erreur_Retour;
|
goto Erreur_Retour;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user