Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
tiny comment changes and tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andyholmes committed Jul 29, 2017
1 parent f537aa8 commit 88b94e4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const PopupMenu = imports.ui.popupMenu;

// Local Imports
const Me = imports.misc.extensionUtils.getCurrentExtension();
const { log, debug, assert, Settings } = Me.imports.lib;
const { log, debug, assert, initTranslations, Settings } = Me.imports.lib;
const MConnect = Me.imports.mconnect;
const KDEConnect = Me.imports.kdeconnect;

Expand Down Expand Up @@ -97,7 +97,7 @@ const DeviceMenu = new Lang.Class({
this.statusBar.statusContent.add(this.statusBar.label);

// Status Bar -> Pair Button
this.statusBar.button = new PopupMenu.PopupMenuItem(_("Send pair request"))
this.statusBar.button = new PopupMenu.PopupMenuItem(_("Send pair request"));
this.statusBar.button.label.x_expand = true;
this.statusBar.button.label.x_align = Clutter.ActorAlign.CENTER;
this.statusBar.button.connect("activate", (item) => {
Expand All @@ -112,6 +112,7 @@ const DeviceMenu = new Lang.Class({
});
this.addMenuItem(this.actionBar);

// Action Bar -> Plugin Buttons
this.smsButton = this._addActionButton(
"user-available-symbolic",
Lang.bind(this, this._smsAction)
Expand Down Expand Up @@ -247,7 +248,7 @@ const DeviceMenu = new Lang.Class({
let { reachable, trusted } = this.device;
let flags = Settings.get_flags("device-visibility");

// FIXME: kind of confusing settings
// TODO: check online & unpaired are available to pair
if (!(flags & DeviceVisibility.UNPAIRED) && !trusted) {
this.actor.visible = false;
} else if (!(flags & DeviceVisibility.OFFLINE) && !reachable) {
Expand Down Expand Up @@ -603,7 +604,7 @@ var systemIndicator;
function init() {
debug("initializing extension");

Me.imports.lib.initTranslations();
initTranslations();
}

function enable() {
Expand Down

0 comments on commit 88b94e4

Please sign in to comment.