add UI for token unbanning
This commit is contained in:
parent
3de34ee492
commit
4d38795563
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,7 @@ maxctx = 2048
|
||||||
maxlen = 128
|
maxlen = 128
|
||||||
modelbusy = False
|
modelbusy = False
|
||||||
defaultport = 5001
|
defaultport = 5001
|
||||||
KcppVersion = "1.16"
|
KcppVersion = "1.17"
|
||||||
|
|
||||||
class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
sys_version = ""
|
sys_version = ""
|
||||||
|
@ -432,8 +432,10 @@ def show_gui():
|
||||||
stream = tk.IntVar()
|
stream = tk.IntVar()
|
||||||
smartcontext = tk.IntVar()
|
smartcontext = tk.IntVar()
|
||||||
launchbrowser = tk.IntVar(value=1)
|
launchbrowser = tk.IntVar(value=1)
|
||||||
|
unbantokens = tk.IntVar()
|
||||||
tk.Checkbutton(root, text='Streaming Mode',variable=stream, onvalue=1, offvalue=0).pack()
|
tk.Checkbutton(root, text='Streaming Mode',variable=stream, onvalue=1, offvalue=0).pack()
|
||||||
tk.Checkbutton(root, text='Use SmartContext',variable=smartcontext, onvalue=1, offvalue=0).pack()
|
tk.Checkbutton(root, text='Use SmartContext',variable=smartcontext, onvalue=1, offvalue=0).pack()
|
||||||
|
tk.Checkbutton(root, text='Unban Tokens',variable=unbantokens, onvalue=1, offvalue=0).pack()
|
||||||
tk.Checkbutton(root, text='Launch Browser',variable=launchbrowser, onvalue=1, offvalue=0).pack()
|
tk.Checkbutton(root, text='Launch Browser',variable=launchbrowser, onvalue=1, offvalue=0).pack()
|
||||||
|
|
||||||
# Create button, it will change label text
|
# Create button, it will change label text
|
||||||
|
@ -452,6 +454,7 @@ def show_gui():
|
||||||
args.stream = (stream.get()==1)
|
args.stream = (stream.get()==1)
|
||||||
args.smartcontext = (smartcontext.get()==1)
|
args.smartcontext = (smartcontext.get()==1)
|
||||||
args.launch = (launchbrowser.get()==1)
|
args.launch = (launchbrowser.get()==1)
|
||||||
|
args.unbantokens = (unbantokens.get()==1)
|
||||||
selchoice = runchoice.get()
|
selchoice = runchoice.get()
|
||||||
|
|
||||||
if selchoice==opts[1]:
|
if selchoice==opts[1]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue