2023-04-09 05:35:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-06-08 17:16:23 +00:00
|
|
|
callbacks["UpdateAvatar"] = (jsonData) => {
|
2022-04-30 07:27:56 +00:00
|
|
|
mainWindow.busy = false;
|
|
|
|
Self.avatar = jsonData;
|
2024-06-10 06:58:48 +00:00
|
|
|
toast.show(luatr("Update avatar done."));
|
2022-03-27 12:00:29 +00:00
|
|
|
}
|
|
|
|
|
2023-06-08 17:16:23 +00:00
|
|
|
callbacks["UpdatePassword"] = (jsonData) => {
|
2022-04-30 07:27:56 +00:00
|
|
|
mainWindow.busy = false;
|
|
|
|
if (jsonData === "1")
|
2024-06-10 06:58:48 +00:00
|
|
|
toast.show(luatr("Update password done."));
|
2022-04-30 07:27:56 +00:00
|
|
|
else
|
2024-06-10 06:58:48 +00:00
|
|
|
toast.show(luatr("Old password wrong!"), 5000);
|
2022-03-27 12:00:29 +00:00
|
|
|
}
|