Corrected code formatting

This commit is contained in:
OpenSauce04 2024-08-03 00:04:36 +01:00
parent aae84524eb
commit ddd832104c
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void HotkeyRegistry::LoadHotkeys() {
QKeySequence::fromString(shortcut.shortcut.keyseq, QKeySequence::NativeText);
hk.context = static_cast<Qt::ShortcutContext>(shortcut.shortcut.context);
}
for(auto const& [_, hotkey_shortcut] : hk.shortcuts) {
for (auto const& [_, hotkey_shortcut] : hk.shortcuts) {
if (hotkey_shortcut) {
hotkey_shortcut->disconnect();
hotkey_shortcut->setKey(hk.keyseq);

View File

@ -656,7 +656,8 @@ void GMainWindow::InitializeHotkeys() {
// QShortcut Hotkeys
const auto connect_shortcut = [&](const QString& action_name, const auto& function) {
const auto* hotkey = hotkey_registry.GetHotkey(main_window, action_name, this);
const auto* secondary_hotkey = hotkey_registry.GetHotkey(main_window, action_name, secondary_window);
const auto* secondary_hotkey =
hotkey_registry.GetHotkey(main_window, action_name, secondary_window);
connect(hotkey, &QShortcut::activated, this, function);
connect(secondary_hotkey, &QShortcut::activated, this, function);
};