piroor / treestyletab

Tree Style Tab, Show tabs like a tree.

Home Page:http://piro.sakura.ne.jp/xul/treestyletab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Settings item in Tools menu

dogancelik opened this issue · comments

Optional Settings menu item in Tools menu would be really handy oppose to searching for Options button in Add-ons page.

tst

I have no motivation to add such a menu item, sorry. See the comment: #940 (comment)

Is there a function to open Settings dialog like below?

coomanPlus.openCookieEditor();
s3menuwizard.open_options_window();

So users can add the item themselves

No such function. TST's configuration dialog is only shown by Firefox's addon manager - I entrust anything around the configuration dialog to Firefox itself, so I really don't know details how to do it manually. And I believe that it is not a task of addon authors.

In other words, I don't want to treat how to open configuration dialogs by myself because the most well-mannered way to open configuration UI of addons can change on future versions of Firefox. I hope to spend more time to fix other critical bugs instead of maintaining such unnecessary codes.

And, as my comments on the referred issue #940, if you are annoyed by something and you have to open TST's configuration dialog again and again, then the problem should be solved with any other method better than adding menu item to open the configuration dialog.

Thank you for sharing your thoughts.

I found a way to open Settings dialog using S3 Menu Wizard

Steps

Create an item and put this code in onCommand event

openDialog('chrome://treestyletab/content/config.xul', '', 'chrome,titlebar,toolbar,centerscreen,modal');

and use this CSS to change the icon of the menu item:

list-style-image: url('chrome://treestyletab/content/res/icon.png');

Result

result

Hope this helps people with the same request :)