Skip to content

Commit

Permalink
Merge branch 'improvement/ghi-#49-unnecessary-io-write-event-on-packa…
Browse files Browse the repository at this point in the history
…ge-deactivation' into develop
  • Loading branch information
arcticicestudio committed Apr 14, 2017
2 parents c5af4e3 + 461b090 commit 892e673
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default {
let themePack = atom.packages.getLoadedPackage("nord-atom-syntax");

if (themePack) {
themePack.deactivate();
setImmediate(() => themePack.activate());
}
}
Expand All @@ -36,10 +35,5 @@ export default {
activate() {
toggleClass(true, "theme-nord-atom-syntax-accessibility-custom-comment-contrast");
atom.config.onDidChange("nord-atom-syntax.accessibility.commentContrast", () =>this.writeConfig({ noReload: true }));
},

deactivate() {
toggleClass(false, "theme-nord-atom-syntax-accessibility-custom-comment-contrast");
this.writeConfig({ noReload: true });
}
};

0 comments on commit 892e673

Please sign in to comment.