From e3506602285d5d6ae608cf3870ed233e17d8eb85 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 23 Nov 2024 19:57:55 -0700 Subject: [PATCH] Fix mods page not sending enabled/disabled setting flag change to the log --- lib/consts.dart | 2 +- lib/pages/ModManager.dart | 4 ++++ pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/consts.dart b/lib/consts.dart index 1b3b851..21d4f81 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -1,3 +1,3 @@ class Consts { - static const VERSION = "1.1.112324.1951"; + static const VERSION = "1.1.112324.1957"; } diff --git a/lib/pages/ModManager.dart b/lib/pages/ModManager.dart index 4362587..6344916 100644 --- a/lib/pages/ModManager.dart +++ b/lib/pages/ModManager.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:servermanager/structs/discordHookHelper.dart'; import '../structs/mod.dart'; import '../structs/settings.dart'; @@ -266,6 +267,9 @@ class ModPageState extends State { setState(() { enabled = V; }); + + Settings.Instance.loggedInUser!.sendDiscordActionLog( + "${name} was ${enabled ? "enabled" : "disabled"}"); }, title: Text("Enabled"), subtitle: Text("Whether mod is enabled or not"), diff --git a/pubspec.yaml b/pubspec.yaml index 6a03ba4..688b808 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.112324+1951 +version: 1.1.112324+1957 environment: sdk: ">=3.1.4 <4.0.0"