mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Changed the DoPreferences function.
This commit is contained in:
parent
3a370ba4d6
commit
5ab57c47d6
@ -309,16 +309,15 @@
|
|||||||
|
|
||||||
function DoPreferences()
|
function DoPreferences()
|
||||||
{
|
{
|
||||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
var prefsCore = XPAppCoresManager.Find("PrefsCore");
|
||||||
if (!toolkitCore) {
|
if (!prefsCore) {
|
||||||
toolkitCore = new ToolkitCore();
|
prefsCore = new PrefsCore();
|
||||||
if (toolkitCore) {
|
if (prefsCore) {
|
||||||
toolkitCore.Init("ToolkitCore");
|
prefsCore.Init("PrefsCore");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (toolkitCore) {
|
if (prefsCore) {
|
||||||
toolkitCore.ShowWindow("resource:/res/samples/PrefsWindow.html",
|
prefsCore.ShowWindow(window);
|
||||||
window);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user