mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 13:32:27 +00:00
Fix assigning configured shortcuts to QuickCommands
As QuickCommands will be created in MainWindow widgets mainly, we have to create all widgets before we load the keyboard shortcuts.
This commit is contained in:
parent
297dbbf913
commit
264c59bbc1
@ -90,9 +90,6 @@ MainWindow::MainWindow()
|
|||||||
, m_devConsoleView(nullptr)
|
, m_devConsoleView(nullptr)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// Load all menus by first time.
|
|
||||||
AppMenus::instance()->reload();
|
|
||||||
|
|
||||||
m_menuBar = new MainMenuBar();
|
m_menuBar = new MainMenuBar();
|
||||||
m_notifications = new Notifications();
|
m_notifications = new Notifications();
|
||||||
m_contextBar = new ContextBar();
|
m_contextBar = new ContextBar();
|
||||||
@ -119,6 +116,9 @@ MainWindow::MainWindow()
|
|||||||
m_workspace->setExpansive(true);
|
m_workspace->setExpansive(true);
|
||||||
m_notifications->setVisible(false);
|
m_notifications->setVisible(false);
|
||||||
|
|
||||||
|
// Load all menus by first time.
|
||||||
|
AppMenus::instance()->reload();
|
||||||
|
|
||||||
// Setup the menus
|
// Setup the menus
|
||||||
m_menuBar->setMenu(AppMenus::instance()->getRootMenu());
|
m_menuBar->setMenu(AppMenus::instance()->getRootMenu());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user