diff options
author | haraldox <hnaumann+github@gmail.com> | 2018-02-21 13:01:35 +0100 |
---|---|---|
committer | haraldox <hnaumann+github@gmail.com> | 2018-02-21 13:01:35 +0100 |
commit | 0f1b958d350d445a41810b8262eefbe2cf465e64 (patch) | |
tree | 78c7cf50435d19b4fdc2e0b8a85cd8fae2aad0ad | |
parent | fix observable template (diff) | |
download | ferdium-app-0f1b958d350d445a41810b8262eefbe2cf465e64.tar.gz ferdium-app-0f1b958d350d445a41810b8262eefbe2cf465e64.tar.zst ferdium-app-0f1b958d350d445a41810b8262eefbe2cf465e64.zip |
[MINOR] rename `template` to `currentTemplate`
-rw-r--r-- | src/lib/Menu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 3b02273ed..ed21315d8 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -116,7 +116,7 @@ const template = [ | |||
116 | 116 | ||
117 | export default class FranzMenu { | 117 | export default class FranzMenu { |
118 | @observable tpl = template; | 118 | @observable tpl = template; |
119 | @observable template = null; | 119 | @observable currentTemplate = null; |
120 | 120 | ||
121 | constructor(stores, actions) { | 121 | constructor(stores, actions) { |
122 | this.stores = stores; | 122 | this.stores = stores; |
@@ -126,7 +126,7 @@ export default class FranzMenu { | |||
126 | } | 126 | } |
127 | 127 | ||
128 | get template() { | 128 | get template() { |
129 | return this.template; | 129 | return this.currentTemplate; |
130 | } | 130 | } |
131 | 131 | ||
132 | _build() { | 132 | _build() { |
@@ -253,7 +253,7 @@ export default class FranzMenu { | |||
253 | tpl[isMac ? 3 : 2].submenu = toJS(this.serviceTpl); | 253 | tpl[isMac ? 3 : 2].submenu = toJS(this.serviceTpl); |
254 | } | 254 | } |
255 | 255 | ||
256 | this.template = tpl; | 256 | this.currentTemplate = tpl; |
257 | const menu = Menu.buildFromTemplate(tpl); | 257 | const menu = Menu.buildFromTemplate(tpl); |
258 | Menu.setApplicationMenu(menu); | 258 | Menu.setApplicationMenu(menu); |
259 | } | 259 | } |