mirror of
https://github.com/gryf/wicd.git
synced 2026-01-02 20:04:16 +01:00
Initial work on automatic switchover to wired networks (no UI work yet)
actually use "write=True" instead of just "True" everywhere we do config writes explicitly. Fix the scripts dialog not working for wired connections. Force the monitor to update state after triggering a disconnect or connect. Remove an unneeded Scan call from autoconnect.py
This commit is contained in:
@@ -234,7 +234,7 @@ class WiredSettingsDialog(AdvancedSettingsDialog):
|
||||
|
||||
def edit_scripts(self, widget=None, event=None):
|
||||
""" Launch the script editting dialog. """
|
||||
profile = self.combo_profile_names.get_active_text()
|
||||
profile = self.prof_name
|
||||
cmdend = [os.path.join(wpath.lib, "configscript.py"), profile, "wired"]
|
||||
if os.getuid() != 0:
|
||||
cmdbase = misc.get_sudo_cmd(language['scripts_need_pass'])
|
||||
@@ -695,6 +695,7 @@ class WiredNetworkEntry(NetworkEntry):
|
||||
return
|
||||
|
||||
profile_name = self.combo_profile_names.get_active_text()
|
||||
self.advanced_dialog.prof_name = profile_name
|
||||
wired.ReadWiredNetworkProfile(profile_name)
|
||||
|
||||
self.advanced_dialog.txt_ip.set_text(self.format_entry("ip"))
|
||||
|
||||
Reference in New Issue
Block a user