* Remove unused VRAM dump option

* Only emit fileSelected signal if the user didn't cancel file selection
* Don't unmount emulator images if the user cancelled file selection
This commit is contained in:
Cacodemon345
2022-02-05 01:35:26 +06:00
parent 62a9b9c2b1
commit 67cce8d196
3 changed files with 13 additions and 25 deletions

View File

@@ -384,21 +384,6 @@ MainWindow::MainWindow(QWidget *parent) :
});
}
#endif
#ifdef ENABLE_VRAM_DUMP
{
#ifndef MTR_ENABLED
ui->menuTools->addSeparator();
#endif
auto actionDump_video_RAM = ui->menuTools->addAction(tr("Dump &video RAM"));
actionDump_video_RAM->setShortcut(QKeySequence(Qt::Key_Control + Qt::Key_F1));
#ifdef Q_OS_MACOS
actionDump_video_RAM->setShortcutVisibleInContextMenu(true);
#endif
connect(actionDump_video_RAM, &QAction::triggered, this, [this]
{ svga_dump_vram(); });
}
#endif
}
void MainWindow::closeEvent(QCloseEvent *event) {