Skip to content

Commit

Permalink
Removed pocket related things
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelcortez committed Nov 28, 2015
1 parent f8e14d7 commit 6741212
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/controller/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import os
import webbrowser
import pocket
#import pocket
import sound_lib
import paths
import widgetUtils
Expand All @@ -15,7 +15,7 @@
from pubsub import pub
import logging
import config_utils
from pocket_utils import authorisationHandler
#from pocket_utils import authorisationHandler
import BaseHTTPServer
log = logging.getLogger("Settings")
import keys
Expand Down Expand Up @@ -147,11 +147,11 @@ def create_config(self):
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
self.dialog.create_services()
if self.config["services"]["pocket_access_token"] == "":
self.dialog.services.set_pocket(False)
else:
self.dialog.services.set_pocket(True)
widgetUtils.connect_event(self.dialog.services.pocketBtn, widgetUtils.BUTTON_PRESSED, self.manage_pocket)
# if self.config["services"]["pocket_access_token"] == "":
# self.dialog.services.set_pocket(False)
# else:
# self.dialog.services.set_pocket(True)
# widgetUtils.connect_event(self.dialog.services.pocketBtn, widgetUtils.BUTTON_PRESSED, self.manage_pocket)
self.dialog.set_value("services", "apiKey", self.config["sound"]["sndup_api_key"])
self.dialog.realize()
self.dialog.set_title(_(u"Account settings for %s") % (self.user,))
Expand Down
4 changes: 2 additions & 2 deletions src/wxUI/dialogs/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def __init__(self, parent):
apiKeyBox.Add(apiKeyLabel, 0, wx.ALL, 5)
apiKeyBox.Add(self.apiKey, 0, wx.ALL, 5)
mainSizer.Add(apiKeyBox, 0, wx.ALL, 5)
self.pocketBtn = wx.Button(self, -1)
mainSizer.Add(self.pocketBtn, 0, wx.ALL, 5)
# self.pocketBtn = wx.Button(self, -1)
# mainSizer.Add(self.pocketBtn, 0, wx.ALL, 5)
self.SetSizer(mainSizer)

def set_pocket(self, active=True):
Expand Down

0 comments on commit 6741212

Please sign in to comment.