Move Account Settings to the Mac OS X application menu
Categories
(Thunderbird :: Mail Window Front End, enhancement)
Tracking
(thunderbird_esr91 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | unaffected |
People
(Reporter: mscott, Assigned: Paenglab)
References
(Blocks 1 open bug)
Details
(Keywords: uiwanted)
Attachments
(2 files, 5 obsolete files)
Reporter | ||
Updated•20 years ago
|
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Reporter | ||
Comment 4•20 years ago
|
||
Comment 5•20 years ago
|
||
Reporter | ||
Comment 6•20 years ago
|
||
Reporter | ||
Updated•19 years ago
|
Updated•18 years ago
|
Comment 8•17 years ago
|
||
Updated•15 years ago
|
Comment 10•15 years ago
|
||
Comment 12•15 years ago
|
||
![]() |
||
Updated•13 years ago
|
Updated•7 years ago
|
Comment 13•4 years ago
|
||
Is this something we want to do?
Assignee | ||
Comment 14•4 years ago
|
||
Some time ago I tried this. Then it worked besides the issue that in composer the Tools
menu is shown but empty.
I had to update the patch and it is now untested because I'd have to change from artifact builds to normal builds.
Alessandro, what do you think about this?
Assignee | ||
Comment 15•4 years ago
|
||
Remove the menuseparator in our menu.
Assignee | ||
Comment 16•4 years ago
|
||
I did now a full build and found a build issue. Fixed now.
M-C did some changes in Mac menu. Now in Composer the Tools
still has the AM menuitem, probably because it's the only item in this menu. The Address Book doesn't have this item because it has other menu items in it.
The problem I have is that the item is now in the application menu but it doesn't open the AM.
Mark, I know you have asked for this change sometime ago. I don't know how to make this working on Mac I've never programmed on Mac. Maybe you can help? The skeleton is done and hopefully only a fine tuning is needed.
Comment 17•4 years ago
|
||
I'm okay with having the Account Settings menu in the macos Application menu.
I'm not sure I'd be too helpful in reviewing it unfortunately.
Updated•4 years ago
|
Comment 18•3 years ago
|
||
Assignee | ||
Comment 19•3 years ago
|
||
Assignee | ||
Comment 20•3 years ago
|
||
Alex, please could have a look what is wrong/missing?
When I remove the "get selected folder" part (https://searchfox.org/comm-central/source/mailnews/base/prefs/content/accountUtils.js#157-170) the Account Manager tab opens. So it is not an issue of not finding the window.
With adding folderPane.js
to the hiddenWindowMac.xhtml
I advanced a bit. But now I get a accountManager is undefined
error in mailWindowOverlay.js. I thought it is defined from other files but it seems not. So what am I missing here?
Comment 21•3 years ago
|
||
I haven't tested this thoroughly because I can't do a full build on macOS, but I don't think adding accountUtils.js
and folderPane.js
to the hiddenWindowMac.xhtml
is correct. As Mark said, those files assume that a window is always available so this wouldn't work.
Did you try following the suggestion from Mark by using something similar to this method? https://searchfox.org/comm-central/rev/44aa77c6da7c13b659667b96eb3c149e2096d0f1/mail/base/content/aboutDialog.js#106-128
I think something like that should be used in a new function inside hiddenWindowMac.js
.
Assignee | ||
Comment 22•3 years ago
|
||
As I wrote already this seems not to be a problem of a not available window, the menu is shown when the window is active. Without the "get selected folder" part it works. It seems when this part runs it can't get the needed information, but why?
When I add accountUtils.js
and folderPane.js
it goes further but is now stuck on "accountManager is undefined".
This is all I can do with my knowledge. Maybe someone other can go further with my patches.
Comment 23•3 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #22)
As I wrote already this seems not to be a problem of a not available window, the menu is shown when the window is active. Without the "get selected folder" part it works. It seems when this part runs it can't get the needed information, but why?
I believe the menu bar is actually formed in the hidden window - on Mac this is a window that's there all the time in the background but you never see any UI for it. So when you minimise Thunderbird or have no other Thunderbird windows open, the hidden window is there and gives you access to the menu bar.
When I add
accountUtils.js
andfolderPane.js
it goes further but is now stuck on "accountManager is undefined".
The problem with adding those scripts, is that you're then trying to run them in the hidden window. The hidden window doesn't have most of the chrome UI and js that the main window has. So for example there is no folder pane to find the selected folder.
If let mainWindow = Services.wm.getMostRecentBrowserWindow();
returns a window (vs undefined) that window will be the most recently touched main window by the user.
mainWindow.focus();
mainWindow.MsgAccountManager();
This should then focus it & open the account manager - you might need to check if it un-minimises as well, I think it will.
(note: getMostRecentBrowserWindow()
is a shorthand for getMostRecentWindow("mail:3pane");
.
If mainWindow doesn't exist, then we need to open one. Based on the combination of those two code snippets, I think this would work:
window.openDialog(
"chrome://messenger/content/messenger.xhtml",
"_blank",
"chrome,dialog=no,all",
null,
{
tabType: "contentTab",
tabParams: { url: "about:accountsettings" },
}
);
Comment 24•3 years ago
|
||
Richard, I've just posted a patch on bug 1758360 to fix opening of the account settings menu when no other window is open. This also fixes it for when this patch displays it in the application menu. It can land independently of this bug, since it fixes its own issue, hence I separated it out.
Do you think you could drive the m-c patch in? My only comment is that I think Account Settings should be below the Settings option in the menu.
Assignee | ||
Comment 25•3 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #24)
Do you think you could drive the m-c patch in? My only comment is that I think Account Settings should be below the Settings option in the menu.
I can do this. With your patch there is probably only a change in messengercompose.xhtml needed. But then we have an empty Tools
menu in composer (if I remember correctly when I built this last time. I do normally artifact builds because full builds are too slow on my Mac).
Alex, would it be okay when this lands on M-C and we have an entry in Thunderbird
and Tools
menu in composer after the M-C check-in?
We now have the AM entry everywhere above the Settings entry. Should we move it below in the Thunderbird menu only like Mark proposes?
Comment 26•3 years ago
|
||
My only comment is that I think Account Settings should be below the Settings option in the menu
When you say "option menu" do you mean the macOS menu that opens up when you click on "Thunderbird", or do you mean the main app menu?
If it's in the Thunderbird Menu, I think it makes sense.
Assignee | ||
Comment 27•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 28•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 29•3 years ago
|
||
bugherder |
Assignee | ||
Comment 30•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 31•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3a8886dac372
Hide the Account Settings in composer Tools menu. r=aleca
Description
•