diff options
author | aqua <aqua@iserlohn-fortress.net> | 2024-05-01 11:17:07 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2024-05-01 11:17:07 +0300 |
commit | 7feefe9d5c922481081d31b12e02f42d9e028ef9 (patch) | |
tree | 6aee14710adeef4bcc0a86dd800df927f86342fd /src/applicationmenu.cpp | |
parent | Added libConfiguration unit test (diff) | |
download | smolbote-7feefe9d5c922481081d31b12e02f42d9e028ef9.tar.xz |
Diffstat (limited to 'src/applicationmenu.cpp')
-rw-r--r-- | src/applicationmenu.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/applicationmenu.cpp b/src/applicationmenu.cpp index dc888e7..aff5576 100644 --- a/src/applicationmenu.cpp +++ b/src/applicationmenu.cpp @@ -22,31 +22,31 @@ ApplicationMenu::ApplicationMenu(Browser *app, QWidget *parent) setTitle(qApp->applicationName()); Configuration conf; - const auto sessionPath = conf.value<QString>("session.path").value(); + const auto sessionPath = conf.value<QString>("session/path").value(); auto *actionSaveSession = addAction(tr("Save Session"), this, [sessionPath]() { auto *sessionDialog = new SaveSessionDialog(nullptr); if(sessionDialog->exec() == QDialog::Accepted) { sessionDialog->save(sessionPath); } }); - conf.shortcut<QAction>(*actionSaveSession, "shortcuts.session.save"); + conf.shortcut<QAction>(*actionSaveSession, "shortcuts/session.save"); auto *actionOpenSession = addAction(tr("Open Session"), this, []() { auto *sessionDialog = new SessionDialog(nullptr); sessionDialog->exec(); }); - conf.shortcut<QAction>(*actionOpenSession, "shortcuts.session.open"); + conf.shortcut<QAction>(*actionOpenSession, "shortcuts/session.open"); bottom_pluginSeparator = addSeparator(); auto *actionAbout = addAction(tr("About"), app, &Browser::about); - conf.shortcut<QAction>(*actionAbout, "shortcuts.window.about"); + conf.shortcut<QAction>(*actionAbout, "shortcuts/window.about"); auto *action_aboutPlugins = addAction(tr("About Plugins"), app, &Browser::aboutPlugins); - conf.shortcut(*action_aboutPlugins, "app.shortcuts.about.plugins"); + conf.shortcut(*action_aboutPlugins, "shortcuts/about.plugins"); auto *actionQuit = addAction(tr("Quit"), app, &Browser::quit); - conf.shortcut<QAction>(*actionQuit, "shortcuts.window.quit"); + conf.shortcut<QAction>(*actionQuit, "shortcuts/window.quit"); } void ApplicationMenu::addPlugin(QPluginLoader *plugin) |