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:
@@ -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. """
|
||||
|
||||
Reference in New Issue
Block a user