Make a user pref that stores the state of "hide lines" and "hide grid" actions.
Make a user pref that stores the state of "hide lines" and "hide grid" actions.