File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ def toggle_hack(name):
81
81
The name of the hack to toggle.
82
82
"""
83
83
get_hack (name )['enabled' ] = not get_hack (name )['enabled' ]
84
+ lnp .config .save_data ()
84
85
rebuild_hacks ()
85
86
86
87
def rebuild_hacks ():
Original file line number Diff line number Diff line change 9
9
10
10
from .json_config import JSONConfiguration
11
11
12
- VERSION = '0.9.5 '
12
+ VERSION = '0.9.5a '
13
13
14
14
lnp = None
15
15
class PyLNP (object ):
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ def simple_dffd_config():
119
119
"""Reduces the configuration required by maintainers using DFFD.
120
120
Values are generated and saved from known URLs and the 'dffdID' field."""
121
121
c = lnp .config
122
- u = lnp .config .get_dict ('updates' )
122
+ import copy
123
+ u = copy .deepcopy (lnp .config .get_dict ('updates' ))
123
124
download_patt = 'http://dffd.bay12games.com/file.php?id='
124
125
check_patt = 'http://dffd.bay12games.com/file_version.php?id='
125
126
direct = 'http://dffd.bay12games.com/download.php?id={0}&f=new_pack.zip'
You can’t perform that action at this time.
0 commit comments