60 |
self.vbox.add(hbox) |
self.vbox.add(hbox) |
61 |
|
|
62 |
def online_check_toggled(self, *args): |
def online_check_toggled(self, *args): |
63 |
straw.config.offline = not straw.config.offline |
config = straw.Config.get_instance() |
64 |
|
config.offline = not config.offline |
65 |
|
|
66 |
def reportError(primaryText, secondaryText): |
def reportError(primaryText, secondaryText): |
67 |
alert = HIGAlert(primaryText, secondaryText, |
alert = HIGAlert(primaryText, secondaryText, |
71 |
|
|
72 |
def reportOfflineStatus(primaryText, secondaryText, feed=None): |
def reportOfflineStatus(primaryText, secondaryText, feed=None): |
73 |
def response(*args): |
def response(*args): |
74 |
if not straw.config.offline: |
if not straw.Config.get_instance().offline: |
75 |
if feed is not None: |
if feed is not None: |
76 |
straw.poll_manager.poll(feed) |
straw.poll_manager.poll(feed) |
77 |
else: |
else: |