1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-01 11:32:27 +01:00

Fix saving scripts not working correctly.

This commit is contained in:
Dan O'Reilly
2008-12-13 13:28:05 -05:00
parent 69b011a1e7
commit 6e4d70c4ea
4 changed files with 21 additions and 13 deletions

View File

@@ -122,6 +122,7 @@ def write_scripts(network, network_type, script_info):
con.set(network, "afterscript", script_info["post_entry"])
con.set(network, "disconnectscript", script_info["disconnect_entry"])
con.write(open(wired_conf, "w"))
wired.ReloadConfig()
wired.ReadWiredNetworkProfile(network)
wired.SaveWiredNetworkProfile(network)
else:
@@ -133,9 +134,11 @@ def write_scripts(network, network_type, script_info):
con.set(bssid, "afterscript", script_info["post_entry"])
con.set(bssid, "disconnectscript", script_info["disconnect_entry"])
con.write(open(wireless_conf, "w"))
wireless.ReloadConfig()
wireless.ReadWirelessNetworkProfile(int(network))
wireless.SaveWirelessNetworkProfile(int(network))
def main (argv):
""" Runs the script configuration dialog. """
if len(argv) < 2: