@@ -5632,6 +5632,18 @@ void cmdJumpToTime(Command* command) {
56325632 }, 50 );
56335633}
56345634
5635+ void cmdVideoWindowVisibility (Command* command) {
5636+ Main_OnCommand (command->gaccel .accel .cmd , 0 );
5637+ // Delay the report to avoid it being clobbered when GUI updates.
5638+ CallLater ([]() {
5639+ if (GetToggleCommandState (50125 )) { // Show/hide video window
5640+ outputMessage (translate (" showed video window" ));
5641+ } else {
5642+ outputMessage (translate (" hid video window" ));
5643+ }
5644+ }, 50 );
5645+ }
5646+
56355647void cmdReportAndEditScrubSegmentOffsets (Command* command) {
56365648 int sizeStart = 0 ;
56375649 int sizeEnd = 0 ;
@@ -5881,6 +5893,7 @@ Command COMMANDS[] = {
58815893 {MAIN_SECTION, {{0 , 0 , 42207 }, nullptr }, nullptr , cmdAddAutoItems}, // Envelope: Convert all project automation to automation items
58825894 {MAIN_SECTION, {{0 , 0 , 42089 }, nullptr }, nullptr , cmdGlueAutoItems}, // Envelope: Glue automation items
58835895 {MAIN_SECTION, {{0 , 0 , 40069 }, nullptr }, nullptr , cmdJumpToTime}, // View: Jump (go) to time window
5896+ {MAIN_SECTION, {{0 , 0 , 50125 }, nullptr }, nullptr , cmdVideoWindowVisibility}, // Video: Show/hide video window
58845897 {MIDI_EDITOR_SECTION, {{0 , 0 , 40036 }, nullptr }, nullptr , cmdMidiMoveCursor}, // View: Go to start of file
58855898 {MIDI_EVENT_LIST_SECTION, {{0 , 0 , 40036 }, nullptr }, nullptr , cmdMidiMoveCursor}, // View: Go to start of file
58865899 {MIDI_EDITOR_SECTION, {{0 , 0 , 40037 }, nullptr }, nullptr , cmdMidiMoveCursor}, // View: Go to end of file
0 commit comments