Fix menubar display on Windows/Linux
Fix menubar display on Windows/Linux

Avoid potential race condition

philschatz/gitbook-editor,gdbooks/editor-legacy,GitbookIO/editor-legacy,KINGSABRI/editor-legacy,GitbookIO/editor-legacy,philschatz/gitbook-editor,zhanghuiguoanlige/editor-legacy,gdbooks/editor-legacy,GitbookIO/editor-legacy,KINGSABRI/editor-legacy,zhanghuiguoanlige/editor-legacy,Futuring/editor-legacy,Futuring/editor-legacy,Futuring/editor-legacy,zhanghuiguoanlige/editor-legacy,gdbooks/editor-legacy,KINGSABRI/editor-legacy