Skip to content

Commit

Permalink
adapt name
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorriegler committed Aug 8, 2020
1 parent 8d05360 commit 8e4c2e9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "egg-timer",
"name": "Egg Timer",
"description": "A simplistic Egg Timer for the Top Panel",
"uuid": "[email protected]",
"shell-version": [
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "egg-timer",
"name": "gnome-shell-extension-egg-timer",
"version": "1.0.0",
"description": "",
"main": "src/duration.js",
"scripts": {
"test": "mocha",
"build": "gulp build",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function enable() {
indicator.setToggleLoopHandler(function (loop) {
controller.toggleLoop(loop)
})
Main.panel.addToStatusArea(`${Me.metadata.name}-indicator`, indicator)
Main.panel.addToStatusArea(`egg-time-indicator`, indicator)
}

function disable() {
Expand Down
8 changes: 4 additions & 4 deletions src/log.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
'use strict'

const Me = imports.misc.extensionUtils.getCurrentExtension()
const id = 'egg-timer'
const Debug = false

const info = message => {
log(Me.metadata.name + ' [info ]: ' + message)
log(id + ' [info ]: ' + message)
}

const debug = message => {
if (Debug) {
log(Me.metadata.name + ' [debug]: ' + message)
log(id + ' [debug]: ' + message)
}
}

const debugTime = (message, time) => {
if (Debug) {
log(Me.metadata.name + ' [debug]: ' + message + (time ? ' ' + time.prettyPrint() : ''))
log(id + ' [debug]: ' + message + (time ? ' ' + time.prettyPrint() : ''))
}
}

0 comments on commit 8e4c2e9

Please sign in to comment.