Merge pull request #7198 from spycrab/qt_hotkey_fixes
Qt/Hotkeys: Various fixes
This commit is contained in:
commit
87c5d00e20
|
@ -483,6 +483,12 @@ void HotkeyScheduler::Run()
|
||||||
|
|
||||||
if (IsHotkey(HK_UNDO_SAVE_STATE))
|
if (IsHotkey(HK_UNDO_SAVE_STATE))
|
||||||
emit StateSaveUndo();
|
emit StateSaveUndo();
|
||||||
|
|
||||||
|
if (IsHotkey(HK_LOAD_STATE_FILE))
|
||||||
|
emit StateLoadFile();
|
||||||
|
|
||||||
|
if (IsHotkey(HK_SAVE_STATE_FILE))
|
||||||
|
emit StateSaveFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@ signals:
|
||||||
void StateSaveSlot(int state);
|
void StateSaveSlot(int state);
|
||||||
void StateLoadLastSaved(int state);
|
void StateLoadLastSaved(int state);
|
||||||
void StateSaveOldest();
|
void StateSaveOldest();
|
||||||
|
void StateLoadFile();
|
||||||
|
void StateSaveFile();
|
||||||
void StateLoadUndo();
|
void StateLoadUndo();
|
||||||
void StateSaveUndo();
|
void StateSaveUndo();
|
||||||
void StartRecording();
|
void StartRecording();
|
||||||
|
|
|
@ -413,6 +413,8 @@ void MainWindow::ConnectHotkeys()
|
||||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveUndo, this, &MainWindow::StateSaveUndo);
|
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveUndo, this, &MainWindow::StateSaveUndo);
|
||||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveOldest, this,
|
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveOldest, this,
|
||||||
&MainWindow::StateSaveOldest);
|
&MainWindow::StateSaveOldest);
|
||||||
|
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveFile, this, &MainWindow::StateSave);
|
||||||
|
connect(m_hotkey_scheduler, &HotkeyScheduler::StateLoadFile, this, &MainWindow::StateLoad);
|
||||||
|
|
||||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateLoadSlotHotkey, this,
|
connect(m_hotkey_scheduler, &HotkeyScheduler::StateLoadSlotHotkey, this,
|
||||||
&MainWindow::StateLoadSlot);
|
&MainWindow::StateLoadSlot);
|
||||||
|
@ -1012,6 +1014,10 @@ void MainWindow::SetStateSlot(int slot)
|
||||||
{
|
{
|
||||||
Settings::Instance().SetStateSlot(slot);
|
Settings::Instance().SetStateSlot(slot);
|
||||||
m_state_slot = slot;
|
m_state_slot = slot;
|
||||||
|
|
||||||
|
Core::DisplayMessage(StringFromFormat("Selected slot %d - %s", m_state_slot,
|
||||||
|
State::GetInfoStringOfSlot(m_state_slot, false).c_str()),
|
||||||
|
2500);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::PerformOnlineUpdate(const std::string& region)
|
void MainWindow::PerformOnlineUpdate(const std::string& region)
|
||||||
|
|
Loading…
Reference in New Issue