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