зеркало из https://github.com/mozilla/pjs.git
use new code for opening preferences with a specific pref page
This commit is contained in:
Родитель
e0f7116c19
Коммит
ff22ae1acd
|
@ -192,18 +192,15 @@ function SortThreadPane(column, sortKey)
|
|||
|
||||
}
|
||||
|
||||
var prefwindow = null;
|
||||
|
||||
function MsgPreferences()
|
||||
{
|
||||
var prefsCore = XPAppCoresManager.Find("PrefsCore");
|
||||
if (!prefsCore) {
|
||||
prefsCore = new PrefsCore();
|
||||
if (prefsCore) {
|
||||
prefsCore.Init("PrefsCore");
|
||||
if (!prefwindow) {
|
||||
prefwindow = Components.classes['component://netscape/prefwindow'].createInstance(Components.interfaces.nsIPrefWindow);
|
||||
}
|
||||
}
|
||||
if (prefsCore) {
|
||||
prefsCore.ShowWindow(window);
|
||||
}
|
||||
|
||||
prefwindow.showWindow("navigator.js", window, "chrome://pref/content/pref-mailnews.html");
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче