Browse Source

tray 菜单项中增加 feedback 选项。

oldj 10 years ago
parent
commit
e77937035a
3 changed files with 16 additions and 2 deletions
  1. 1 1
      app/SH3/MacGap/SwitchHosts!-Info.plist
  2. 0 0
      app/SH3/public/js/main.js
  3. 15 1
      app/src/menu.js

+ 1 - 1
app/SH3/MacGap/SwitchHosts!-Info.plist

@@ -21,7 +21,7 @@
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>
-	<string>2796</string>
+	<string>2803</string>
 	<key>LSApplicationCategoryType</key>
 	<string>public.app-category.developer-tools</string>
 	<key>LSMinimumSystemVersion</key>

File diff suppressed because it is too large
+ 0 - 0
app/SH3/public/js/main.js


+ 15 - 1
app/src/menu.js

@@ -63,18 +63,32 @@ function initTray(app) {
 
         menu.addSeparator();
         var idx = (hosts && hosts.list ? hosts.list.length : 0) + 3;
+
+        menu.addItem({
+            label: 'Feedback',
+            keys: '',
+            index: idx++
+        }, function () {
+            agent.openURL(config.url_feedback);
+        });
+
         menu.addItem({
             label: lang.toggle_dock_icon,
             keys: '',
             index: idx++
         }, function () {
             toggleDockIcon();
+            setTimeout(function () {
+                tray.updateTrayMenu(hosts);
+            }, 100);
         });
+        menu.addSeparator();
+        idx++;
 
         menu.addItem({
             label: 'Quit',
             keys: 'cmd+q',
-            index: idx++
+            index: idx
         }, function () {
             MacGap.terminate();
         });

Some files were not shown because too many files changed in this diff