Tas editor dialog menu action sensitivity fix for Qt GUI.

This commit is contained in:
mjbudd77 2021-11-28 20:29:53 -05:00
parent 27fb529830
commit 9360f7e1a8
2 changed files with 3 additions and 1 deletions

View File

@ -1609,7 +1609,7 @@ void consoleWin_t::createMainMenu(void)
toolsMenu->addAction(act);
// Tools -> TAS Editor
act = new QAction(tr("&TAS Editor ..."), this);
tasEditorAct = act = new QAction(tr("&TAS Editor ..."), this);
//act->setShortcut( QKeySequence(tr("Shift+F7")));
act->setStatusTip(tr("Open TAS Editor Window"));
connect(act, SIGNAL(triggered()), this, SLOT(openTasEditor(void)) );
@ -4278,6 +4278,7 @@ void consoleWin_t::updatePeriodic(void)
recWavAct->setEnabled( FCEU_IsValidUI( FCEUI_RECORDMOVIE ) && !FCEUI_WaveRecordRunning() );
recAsWavAct->setEnabled( FCEU_IsValidUI( FCEUI_RECORDMOVIE ) && !FCEUI_WaveRecordRunning() );
stopWavAct->setEnabled( FCEUI_WaveRecordRunning() );
tasEditorAct->setEnabled( FCEU_IsValidUI(FCEUI_TASEDITOR) );
}
if ( errorMsgValid )

View File

@ -253,6 +253,7 @@ class consoleWin_t : public QMainWindow
QAction *recWavAct;
QAction *recAsWavAct;
QAction *stopWavAct;
QAction *tasEditorAct;
//QAction *aviHudAct;
//QAction *aviMsgAct;