From 61ae9a0c69ce716a15e9347413441cc257e18faa Mon Sep 17 00:00:00 2001 From: Matt Garriott Date: Mon, 3 Sep 2012 13:57:07 -0600 Subject: The help dialog now gets showAdvancedCommands directly from settings. --- background_scripts/main.coffee | 5 ----- 1 file changed, 5 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 24e7dc79..7b703893 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -90,8 +90,6 @@ root.addExcludedUrl = (url) -> chrome.tabs.query({ windowId: chrome.windows.WINDOW_ID_CURRENT, active: true }, (tabs) -> updateActiveState(tabs[0].id)) -getShowAdvancedCommands = (request) -> Settings.get("helpDialog_showAdvancedCommands") - saveHelpDialogSettings = (request) -> Settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands) @@ -110,8 +108,6 @@ root.helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) -> showUnboundCommands, showCommandNames)) dialogHtml = dialogHtml.replace("{{version}}", currentVersion) dialogHtml = dialogHtml.replace("{{title}}", customTitle || "Help") - dialogHtml = dialogHtml.replace("{{showAdvancedCommands}}", - Settings.get("helpDialog_showAdvancedCommands")) dialogHtml # @@ -569,7 +565,6 @@ portHandlers = sendRequestHandlers = getCompletionKeys: getCompletionKeysRequest, getCurrentTabUrl: getCurrentTabUrl, - getShowAdvancedCommands: getShowAdvancedCommands, openUrlInNewTab: openUrlInNewTab, openUrlInCurrentTab: openUrlInCurrentTab, openOptionsPageInNewTab: openOptionsPageInNewTab, -- cgit v1.2.3