main: Close the recorder instead of pausing it

Pausing means that we will continue to use the same output file when
the keybinding is activated again. While useful to record a single
video in chunks, it doesn't seem to be how most users understand the
keybinding. Closing the recorder will close the file and create a new
one the next time the keybinding is pressed.

https://bugzilla.gnome.org/show_bug.cgi?id=675128
This commit is contained in:
Rui Matos 2012-05-02 16:44:40 +02:00
parent d579cd1605
commit 915524e1ab

View File

@ -110,7 +110,7 @@ function _initRecorder() {
} }
if (recorder.is_recording()) { if (recorder.is_recording()) {
recorder.pause(); recorder.close();
Meta.enable_unredirect_for_screen(global.screen); Meta.enable_unredirect_for_screen(global.screen);
} else { } else {
// read the parameters from GSettings always in case they have changed // read the parameters from GSettings always in case they have changed