window: call stop() if we are currently recording

This commit is contained in:
Christian Hergert
2016-04-14 05:40:02 -07:00
parent 89e75fae2d
commit cfd49d2c05

View File

@ -603,7 +603,10 @@ sp_window_record_button_clicked (SpWindow *self,
g_assert (SP_IS_WINDOW (self));
g_assert (GTK_IS_BUTTON (button));
sp_window_start_recording (self);
if (self->state == SP_WINDOW_STATE_RECORDING)
sp_window_stop_recording (self);
else
sp_window_start_recording (self);
}
static void