aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/settingsSync.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utils/settingsSync.ts b/src/utils/settingsSync.ts
index 850d45f..72c876f 100644
--- a/src/utils/settingsSync.ts
+++ b/src/utils/settingsSync.ts
@@ -121,7 +121,7 @@ export async function uploadSettingsBackup(showToast = true): Promise<void> {
// Cloud settings
const cloudSettingsLogger = new Logger("Cloud:Settings", "#39b7e0");
-export async function putCloudSettings() {
+export async function putCloudSettings(manual?: boolean) {
const settings = await exportSettings({ minify: true });
try {
@@ -149,6 +149,14 @@ export async function putCloudSettings() {
VencordNative.settings.set(JSON.stringify(PlainSettings, null, 4));
cloudSettingsLogger.info("Settings uploaded to cloud successfully");
+
+ if (manual) {
+ showNotification({
+ title: "Cloud Settings",
+ body: "Synchronized settings to the cloud!",
+ noPersist: true,
+ });
+ }
} catch (e: any) {
cloudSettingsLogger.error("Failed to sync up", e);
showNotification({