From 5d4dee25ace28305fd2398b718e58b344eb8f096 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 30 Mar 2016 10:33:06 +0000 Subject: [PATCH] change confusing quit and restart items in cloud9 menu --- package.json | 2 +- plugins/c9.ide.layout.classic/layout.js | 9 --------- plugins/c9.ide.login/login.js | 9 +++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index afa9c76f..1fa73604 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "c9.ide.ace.stripws": "#8885016b9e", "c9.ide.behaviors": "#db32109ebc", "c9.ide.closeconfirmation": "#cee4674141", - "c9.ide.configuration": "#528234d97d", + "c9.ide.configuration": "#a936df26bb", "c9.ide.dialog.wizard": "#7667ec79a8", "c9.ide.fontawesome": "#781602c5d8", "c9.ide.format": "#5ec97fb083", diff --git a/plugins/c9.ide.layout.classic/layout.js b/plugins/c9.ide.layout.classic/layout.js index 50d4c6de..250fbf9f 100644 --- a/plugins/c9.ide.layout.classic/layout.js +++ b/plugins/c9.ide.layout.classic/layout.js @@ -333,15 +333,6 @@ define(function(require, exports, module) { amlNode.$ext.className += " c9btn"; menus.addItemByPath("File/~", new apf.divider(), 1000000, plugin); - - if (!c9.local) { - menus.addItemByPath("Cloud9/~", new apf.divider(), 2000000, plugin); - menus.addItemByPath("Cloud9/Quit Cloud9", new apf.item({ - onclick: function(){ - location.href = "http://c9.io"; - } - }), 2000100, plugin); - } menus.addItemByPath("View/~", new apf.divider(), 9999, plugin); diff --git a/plugins/c9.ide.login/login.js b/plugins/c9.ide.login/login.js index eb9ad2df..fc8e68f0 100644 --- a/plugins/c9.ide.login/login.js +++ b/plugins/c9.ide.login/login.js @@ -40,6 +40,15 @@ define(function(require, exports, module) { }); auth.on("relogin", onReLogin); + + if (!c9.local) { + menus.addItemByPath("Cloud9/~", new apf.divider(), 2000000, plugin); + menus.addItemByPath("Cloud9/Quit Cloud9", new apf.item({ + onclick: function(){ + signout(); + } + }), 2000100, plugin); + } } /***** Methods *****/