1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 07:02:29 +01:00

More work on bubbling the reason for connection failures up to the UI.

Refactor Wireless/Wired classes in networking module and daemon so that they don't need to reference each other.  Wired objects don't know about Wireless objects and vice versa.  This also means connecting to a wired/wireless network will only clear the connection on whichever network type you're connecting to.
This commit is contained in:
Dan O'Reilly
2008-12-22 00:05:19 -05:00
parent a82b53309e
commit 16aad93feb
4 changed files with 134 additions and 219 deletions

View File

@@ -309,8 +309,8 @@ class appGui(object):
self.refresh_clicked()
def handle_connection_results(self, results):
if results != "Success" and self.is_visible:
error(self.window, results, block=False)
if results not in ['Success', 'aborted'] and self.is_visible:
error(self.window, language[results], block=False)
def create_adhoc_network(self, widget=None):
""" Shows a dialog that creates a new adhoc network. """