2022-03-27 12:00:29 +00:00
|
|
|
callbacks["UpdateAvatar"] = function(jsonData) {
|
|
|
|
mainWindow.busy = false;
|
2022-03-28 14:24:30 +00:00
|
|
|
Self.avatar = jsonData;
|
2022-03-27 12:00:29 +00:00
|
|
|
toast.show("Update avatar done.");
|
|
|
|
}
|
|
|
|
|
|
|
|
callbacks["UpdatePassword"] = function(jsonData) {
|
|
|
|
mainWindow.busy = false;
|
|
|
|
if (jsonData === "1")
|
|
|
|
toast.show("Update password done.");
|
|
|
|
else
|
|
|
|
toast.show("Old password wrong!", 5000);
|
|
|
|
}
|