aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-07-11 09:41:28 +0100
committerLibravatar GitHub <noreply@github.com>2022-07-11 09:41:28 +0100
commita17154962dfa9eddc39252cb369dc125b13f916f (patch)
tree29137e5cc57597714d894636065391c73e856e75 /src
parentfix: allow selecting help text (diff)
downloadferdium-app-a17154962dfa9eddc39252cb369dc125b13f916f.tar.gz
ferdium-app-a17154962dfa9eddc39252cb369dc125b13f916f.tar.zst
ferdium-app-a17154962dfa9eddc39252cb369dc125b13f916f.zip
Fix Menu bar on Windows not being clickable (#463)
Fix Menu bar on Windows
Diffstat (limited to 'src')
-rw-r--r--src/lib/Menu.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 78849d616..a3a8f4566 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -10,6 +10,7 @@ import {
10import { autorun, makeObservable, observable } from 'mobx'; 10import { autorun, makeObservable, observable } from 'mobx';
11import { defineMessages } from 'react-intl'; 11import { defineMessages } from 'react-intl';
12import osName from 'os-name'; 12import osName from 'os-name';
13import { fromJS } from "immutable";
13import { 14import {
14 CUSTOM_WEBSITE_RECIPE_ID, 15 CUSTOM_WEBSITE_RECIPE_ID,
15 GITHUB_FERDIUM_URL, 16 GITHUB_FERDIUM_URL,
@@ -638,7 +639,7 @@ class FranzMenu {
638 } 639 }
639 640
640 get template() { 641 get template() {
641 return JSON.parse(JSON.stringify(this.currentTemplate)); 642 return fromJS(this.currentTemplate).toJS();
642 } 643 }
643 644
644 _build() { 645 _build() {
@@ -892,7 +893,10 @@ class FranzMenu {
892 title: 'Ferdium', 893 title: 'Ferdium',
893 message: 'Ferdium', 894 message: 'Ferdium',
894 detail: aboutAppDetails, 895 detail: aboutAppDetails,
895 buttons: [intl.formatMessage(menuItems.ok), intl.formatMessage(menuItems.copyToClipboard)], 896 buttons: [
897 intl.formatMessage(menuItems.ok),
898 intl.formatMessage(menuItems.copyToClipboard),
899 ],
896 }) 900 })
897 .then(result => { 901 .then(result => {
898 if (result.response === 1) { 902 if (result.response === 1) {