Commit 7d5e45dd authored by antoor's avatar antoor

Export Settings API

导出设置API
parent c742e7cb
...@@ -14,6 +14,7 @@ class Settings { ...@@ -14,6 +14,7 @@ class Settings {
['about', 'update', 'language', 'aproxy'].map((_) => { ['about', 'update', 'language', 'aproxy'].map((_) => {
antSword['menubar'].reg(`settings-${_}`, this.setActive.bind(this, _)); antSword['menubar'].reg(`settings-${_}`, this.setActive.bind(this, _));
}); });
return this;
} }
open() { open() {
...@@ -33,10 +34,10 @@ class Settings { ...@@ -33,10 +34,10 @@ class Settings {
template: 'text', template: 'text',
width: 200 width: 200
}); });
new About(sidebar); this.about = new About(sidebar);
new Language(sidebar); this.language = new Language(sidebar);
new Update(sidebar); this.update = new Update(sidebar);
new AProxy(sidebar); this.aproxy = new AProxy(sidebar);
this.cell = cell; this.cell = cell;
this.sidebar = sidebar; this.sidebar = sidebar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment