screenshot fixes (#6070)

* screenshot fixes

* formatting

* disable screenshot on pause
This commit is contained in:
Z11-V 2022-07-23 21:57:32 +05:30 committed by GitHub
parent 2d95b9946f
commit 2b2868f156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,7 +588,7 @@ void GMainWindow::InitializeHotkeys() {
});
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Capture Screenshot"), this),
&QShortcut::activated, this, [&] {
if (emu_thread->IsRunning()) {
if (ui->action_Capture_Screenshot->isEnabled()) {
OnCaptureScreenshot();
}
});