Skip to content

Commit 657c090

Browse files
committed
#44 Attaching panel to widget on widget click
1 parent 1bb8a97 commit 657c090

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Widget.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.init = function() {
1111
id: "save-text-to-file-widget",
1212
label: Localisation.getString("saveTextToFile_id"),
1313
contentURL: Data.get("images/ico.png"),
14-
//panel: Panel.get(), #44 Text not saved if panel attached to widget, and widgetObj.destroy() is called
14+
panel: Panel.get(),
1515
onClick: function() {
1616

1717
Tab.getSelectedText();
@@ -21,4 +21,5 @@ exports.init = function() {
2121

2222
exports.remove = function(){
2323
widgetObj.destroy();
24+
Panel.init();
2425
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Saves highlighted text to a file in a specified directory",
66
"author": "Robert Byrne",
77
"license": "GNU GPL v3",
8-
"version": "2.4",
8+
"version": "2.4.1",
99
"permissions": {"private-browsing": true},
1010
"preferences": [{
1111
"name": "fileName",

0 commit comments

Comments
 (0)