bugfix
This commit is contained in:
@@ -277,7 +277,7 @@ class MyApp(Adw.Application):
|
||||
password = conn_info["passwd"]
|
||||
useratip = conn_info["user"] + "@" + conn_info["ip"]
|
||||
with open(HOMEDIR+"/.config/rdpconnect/history.json", "a") as hist_file:
|
||||
hist_id = str(int(max(hist_info)) + 1)
|
||||
hist_id = str(int(max(hist_info, default=0)) + 1)
|
||||
hist_info[hist_id] = useratip
|
||||
js = json.dumps(hist_info, sort_keys=True, indent=4, separators=(',', ': '))
|
||||
hist_file.write(js)
|
||||
|
||||
Reference in New Issue
Block a user