diff --git a/app/index.js b/app/index.js index fd7627d..2fb1eac 100644 --- a/app/index.js +++ b/app/index.js @@ -1,11 +1,8 @@ import document from "document"; import { battery } from "power"; -import { preferences } from "user-settings"; import { display } from "display"; import { today } from 'user-activity'; -import { me } from "appbit"; import { me as device } from "device"; -import * as util from "../common/utils"; import * as appointment from "./appointment"; import * as clock from "./clock"; import * as messaging from "messaging"; @@ -86,8 +83,18 @@ display.addEventListener("change", () => { renderAppointment(); renderBattery(); } + // Stop updating activity info + else { + hideActivity(); + } }); +// Hide event when touched +appointmentsLabel.addEventListener("mousedown", () => { + showActivity(); + updateActivity(); +}) + function renderAppointment() { // Upate the appointment element let event = appointment.next(); diff --git a/resources/index.gui b/resources/index.gui index a59860b..0ebc4ae 100644 --- a/resources/index.gui +++ b/resources/index.gui @@ -2,7 +2,7 @@ -