Skip to content

TagSpaces is an offline, open source, document manager with tagging support

TagSpaces icon is added on installation time automatically to the firefox's navbar

uggrock7ee324476515
diff --git a/lib/main.js b/lib/main.js
index a9302fcda..a46d178bb 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -85,7 +85,7 @@ exports.main = function(options, callbacks) {
id: "TagspacesToolbarButton",
label: "TagSpaces",
image: data.url("icons/icon16.png"),
- toolbarID: "nav-bar",
+ toolbarID: "nav-bar", // nav-bar, TabsToolbar, addon-bar, toolbar-menubar
onCommand: function() {
// Opens the main ui in a new pinned tab
require("tabs").open({
@@ -93,14 +93,15 @@ exports.main = function(options, callbacks) {
isPinned: true,
});
},
- onMouseover: function() {
- this.contentURL = data.url("icons/icon16color.png");
- },
- onMouseout: function() {
- this.contentURL = data.url("icons/icon16.png");
- },
forceMove: true
- });
+ });
+
+ if (require('self').loadReason == "install") {
+ toolbarButton.moveTo({
+ toolbarID: "nav-bar",
+ forceMove: false // only move from palette
+ });
+ }
};
exports.onUnload = function(reason) {