You can very well make Geany use a separate configuration directory (-c) in which you configured the sidebar to be hidden.