lime_qt: Fixed Close Movie button being clickable when no movie is opened
Some checks failed
lime-build / source (push) Has been cancelled
lime-build / linux (appimage) (push) Has been cancelled
lime-build / linux (fresh) (push) Has been cancelled
lime-build / macos (arm64) (push) Has been cancelled
lime-build / macos (x86_64) (push) Has been cancelled
lime-build / windows (msvc) (push) Has been cancelled
lime-build / windows (msys2) (push) Has been cancelled
lime-build / android (push) Has been cancelled
lime-format / clang-format (push) Has been cancelled
lime-transifex / transifex (push) Has been cancelled
lime-build / macos-universal (push) Has been cancelled
lime-build / release (push) Has been cancelled

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) { if (fullscreen_override) {
ui->action_Fullscreen->setChecked(*fullscreen_override); ui->action_Fullscreen->setChecked(*fullscreen_override);
} }
ui->action_Close_Movie->setEnabled(movie_playback_on_start || movie_record_on_start);
ConnectAppEvents(); ConnectAppEvents();
ConnectMenuEvents(); ConnectMenuEvents();

View file

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