[recorder] Don't pass recorderSettings as a paramter to the signal handler

We want to use the settings object created in start(), not the argument
passed to the signal handler.
This commit is contained in:
Adel Gadllah 2010-06-19 12:08:52 +02:00
parent bd4aa54e48
commit 4ccff179a5

View File

@ -136,7 +136,7 @@ function start() {
let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' });
global.screen.connect('toggle-recording', function(recorderSettings) {
global.screen.connect('toggle-recording', function() {
if (recorder == null) {
recorder = new Shell.Recorder({ stage: global.stage });
}