mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-06-19 13:50:09 +10:00
Update Settings Shell.
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
(function(global) {
|
||||
"use strict";
|
||||
var res = Bridge.Resources;
|
||||
var storage = Bridge.External.Storage;
|
||||
var path = storage.path;
|
||||
var root = path.getDir(path.program);
|
||||
|
||||
function getLibRes(libfilename, resid) {
|
||||
var libpath = path.combine(root, libfilename);
|
||||
return res.fromfile(libpath, resid);
|
||||
}
|
||||
|
||||
function getSettingsItem(page, displayName) {
|
||||
return {
|
||||
@@ -8,7 +17,7 @@
|
||||
};
|
||||
}
|
||||
var settingItems = {
|
||||
appinstaller: getSettingsItem("appinstaller.html", "App Installer")
|
||||
appinstaller: getSettingsItem("appinstaller.html", getLibRes("appinstaller.exe", 300))
|
||||
};
|
||||
Object.defineProperty(global, "settingPages", {
|
||||
get: function() { return settingItems; }
|
||||
|
||||
Reference in New Issue
Block a user