agateau / mup

A markup previewer
Other
39 stars 3 forks source link

main menu hide of no return. #4

Open ianorlin opened 9 years ago

ianorlin commented 9 years ago

Open mup up on a grapical interface in LXDE then in the main menu you can right click on it and uncheck main to hide the main menu but then there doesn't seem to be any way to navigate and you end up stuck in a window with no menu that you have to close and open the program again. 2015-05-11-173121_1920x1080_scrot Or getting anything useful in the interface. and only choice is to close the program and reopen it.

agateau commented 9 years ago

Oh good point. Never noticed that. I looked at QToolBar documentation and it seems there is no way to prevent this menu from appearing. I think the action to bring back the bar should be integrated in the main view context menu. What do you think?

agateau commented 9 years ago

Thinking a bit more about it, it should be possible to intercept the context menu event and prevent the toolbar context menu from showing up. I'd rather avoid the potential bugs of maintaining the state of the toolbar across sessions.