Skip to content

Commit

Permalink
move settings import outside helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed May 7, 2019
1 parent c6ffe53 commit eb7b64f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions [email protected]/helpers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const St = imports.gi.St;
const Meta = imports.gi.Meta;
const Config = imports.misc.config;
const Unite = imports.misc.extensionUtils.getCurrentExtension();
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const St = imports.gi.St;
const Meta = imports.gi.Meta;
const Config = imports.misc.config;
const Unite = imports.misc.extensionUtils.getCurrentExtension();
const Settings = Unite.imports.convenience.getSettings();

const USER_CONFIG = GLib.get_user_config_dir();
const USER_STYLES = `${USER_CONFIG}/gtk-3.0/gtk.css`;
Expand Down Expand Up @@ -107,7 +108,6 @@ function isWindow(win) {
function isMaximized(win, matchState) {
if (!win) return;

const Settings = Unite.imports.convenience.getSettings();
let flags = Meta.MaximizeFlags;
let maximized = win.get_maximized();
let primaryScreen = win.is_on_primary_monitor() || !(Settings.getSetting('restrict-to-primary-screen'));
Expand Down

0 comments on commit eb7b64f

Please sign in to comment.