diff options
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MenuBar.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 948072a67a..2f3245fe62 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -296,7 +296,7 @@ void MenuBar::AddToolsMenu() #ifdef RC_CLIENT_SUPPORTS_RAINTEGRATION m_achievements_dev_menu = tools_menu->addMenu(tr("RetroAchievements Development")); AchievementManager::GetInstance().SetDevMenuUpdateCallback( - [this]() { QueueOnObject(this, [this] { this->UpdateAchievementDevelopmentMenu(); }); }); + [this] { QueueOnObject(this, [this] { this->UpdateAchievementDevelopmentMenu(); }); }); m_achievements_dev_menu->menuAction()->setVisible(false); #endif // RC_CLIENT_SUPPORTS_RAINTEGRATION tools_menu->addSeparator(); @@ -406,7 +406,7 @@ void MenuBar::AddStateLoadMenu(QMenu* emu_menu) { QAction* action = m_state_load_slots_menu->addAction(QString{}); - connect(action, &QAction::triggered, this, [=, this]() { emit StateLoadSlotAt(i); }); + connect(action, &QAction::triggered, this, [=, this] { emit StateLoadSlotAt(i); }); } } @@ -423,7 +423,7 @@ void MenuBar::AddStateSaveMenu(QMenu* emu_menu) { QAction* action = m_state_save_slots_menu->addAction(QString{}); - connect(action, &QAction::triggered, this, [=, this]() { emit StateSaveSlotAt(i); }); + connect(action, &QAction::triggered, this, [=, this] { emit StateSaveSlotAt(i); }); } } @@ -440,7 +440,7 @@ void MenuBar::AddStateSlotMenu(QMenu* emu_menu) if (Settings::Instance().GetStateSlot() == i) action->setChecked(true); - connect(action, &QAction::triggered, this, [=, this]() { emit SetStateSlot(i); }); + connect(action, &QAction::triggered, this, [=, this] { emit SetStateSlot(i); }); connect(this, &MenuBar::SetStateSlot, [action, i](const int slot) { if (slot == i) action->setChecked(true); @@ -629,7 +629,7 @@ void MenuBar::AddOptionsMenu() m_reset_ignore_panic_handler = options_menu->addAction(tr("Reset Ignore Panic Handler")); - connect(m_reset_ignore_panic_handler, &QAction::triggered, this, []() { + connect(m_reset_ignore_panic_handler, &QAction::triggered, this, [] { Config::DeleteKey(Config::LayerType::CurrentRun, Config::MAIN_USE_PANIC_HANDLERS); }); @@ -652,17 +652,17 @@ void MenuBar::AddHelpMenu() QAction* website = help_menu->addAction(tr("&Website")); connect(website, &QAction::triggered, this, - []() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/"))); }); + [] { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/"))); }); QAction* documentation = help_menu->addAction(tr("Online &Documentation")); - connect(documentation, &QAction::triggered, this, []() { + connect(documentation, &QAction::triggered, this, [] { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides"))); }); QAction* github = help_menu->addAction(tr("&GitHub Repository")); - connect(github, &QAction::triggered, this, []() { + connect(github, &QAction::triggered, this, [] { QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin"))); }); QAction* bugtracker = help_menu->addAction(tr("&Bug Tracker")); - connect(bugtracker, &QAction::triggered, this, []() { + connect(bugtracker, &QAction::triggered, this, [] { QDesktopServices::openUrl( QUrl(QStringLiteral("https://bugs.dolphin-emu.org/projects/emulator"))); }); @@ -1163,7 +1163,7 @@ void MenuBar::UpdateAchievementDevelopmentMenu() } auto* ra_dev_menu_item = m_achievements_dev_menu->addAction( QString::fromStdString(menu_item.label), this, - [menu_item]() { AchievementManager::GetInstance().ActivateDevMenuItem(menu_item.id); }); + [menu_item] { AchievementManager::GetInstance().ActivateDevMenuItem(menu_item.id); }); ra_dev_menu_item->setEnabled(menu_item.enabled); // Recommended hardcode by RAIntegration.dll developer Jamiras ra_dev_menu_item->setCheckable(i < 2); |
