some stuff is exact
This commit is contained in:
parent
957def11cb
commit
45520c3244
1 changed files with 13 additions and 3 deletions
|
@ -59,9 +59,6 @@ def simple_replace(data):
|
||||||
def remove(data):
|
def remove(data):
|
||||||
invalid = []
|
invalid = []
|
||||||
invalid.append('toolbar')
|
invalid.append('toolbar')
|
||||||
invalid.append('menu.bullet')
|
|
||||||
invalid.append('rootCommand')
|
|
||||||
invalid.append('menu.frame.justify')
|
|
||||||
for inv in invalid:
|
for inv in invalid:
|
||||||
while 1:
|
while 1:
|
||||||
i, key, nul = find_key(data, inv)
|
i, key, nul = find_key(data, inv)
|
||||||
|
@ -72,6 +69,19 @@ def remove(data):
|
||||||
data.pop(i)
|
data.pop(i)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
invalid.append('rootCommand')
|
||||||
|
invalid.append('menu.bullet')
|
||||||
|
invalid.append('menu.frame.justify')
|
||||||
|
for inv in invalid:
|
||||||
|
while 1:
|
||||||
|
i, key, nul = find_key(data, inv, True)
|
||||||
|
if i >= 0:
|
||||||
|
out(key + ' is no longer supported.\nRemove (Y/n)? ')
|
||||||
|
if read_bool():
|
||||||
|
out('Removing "' + key + '"\n')
|
||||||
|
data.pop(i)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
def pressed(data):
|
def pressed(data):
|
||||||
i, nul, nul = find_key(data, 'window.button.pressed', True)
|
i, nul, nul = find_key(data, 'window.button.pressed', True)
|
||||||
|
|
Loading…
Reference in a new issue