Skip to content

Commit 833fa39

Browse files
committed
unlockDialog, authClient: remove unnecessary import.
1 parent 3eca438 commit 833fa39

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

js/misc/authClient.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const GLib = imports.gi.GLib;
66
const Signals = imports.signals;
77

88
const Config = imports.misc.config;
9-
const ScreenShield = imports.ui.screensaver.screenShield;
109

1110
const SIGTERM = 15;
1211

@@ -35,7 +34,7 @@ var AuthClient = class {
3534
let argv = [helper_path];
3635
let flags = Gio.SubprocessFlags.STDIN_PIPE | Gio.SubprocessFlags.STDOUT_PIPE;
3736

38-
if (ScreenShield._debug) {
37+
if (global.settings.get_boolean('debug-screensaver')) {
3938
argv.push('--debug');
4039
} else {
4140
flags |= Gio.SubprocessFlags.STDERR_SILENCE;
@@ -160,7 +159,7 @@ var AuthClient = class {
160159
for (let i = 0; i < lines.length; i++) {
161160
let output = lines[i];
162161
if (output.length > 0) {
163-
if (ScreenShield._debug)
162+
if (global.settings.get_boolean('debug-screensaver'))
164163
global.log(`authClient: received: '${output}'`);
165164

166165
if (output === 'CS_PAM_AUTH_FAILURE') {

js/ui/screensaver/unlockDialog.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const Pango = imports.gi.Pango;
1212
const AuthClient = imports.misc.authClient;
1313
const CinnamonEntry = imports.ui.cinnamonEntry;
1414
const KeyboardManager = imports.ui.keyboardManager;
15-
const ScreenShield = imports.ui.screensaver.screenShield;
1615
const UserWidget = imports.ui.userWidget;
1716
const Util = imports.misc.util;
1817
const Main = imports.ui.main;
@@ -279,7 +278,7 @@ class UnlockDialog extends St.BoxLayout {
279278
} else {
280279
hintText = prompt.replace(/:$/, '');
281280
}
282-
if (ScreenShield._debug)
281+
if (global.settings.get_boolean('debug-screensaver'))
283282
global.log(`UnlockDialog: prompt='${prompt}', hintText='${hintText}'`);
284283

285284
this._infoLabel.text = '';

0 commit comments

Comments
 (0)