lime_qt: Fixed Close Movie button being clickable when no movie is opened

This commit is contained in:
OpenSauce04 2024-10-09 14:56:16 +01:00 committed by OpenSauce
parent 79f9fc30fe
commit 973faeb9d7
2 changed files with 4 additions and 0 deletions

View File

@ -360,6 +360,7 @@ GMainWindow::GMainWindow(Core::System& system_)
if (fullscreen_override) {
ui->action_Fullscreen->setChecked(*fullscreen_override);
}
ui->action_Close_Movie->setEnabled(movie_playback_on_start || movie_record_on_start);
ConnectAppEvents();
ConnectMenuEvents();

View File

@ -377,6 +377,9 @@
<property name="text">
<string>Close</string>
</property>
<property name="enabled">
<bool>false</bool>
</property>
</action>
<action name="action_Save_Movie">
<property name="enabled">