Fix mods page not sending enabled/disabled setting flag change to the log

This commit is contained in:
zontreck 2024-11-23 19:57:55 -07:00
parent 3b7876532b
commit e350660228
3 changed files with 6 additions and 2 deletions

View file

@ -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<ModPage> {
setState(() {
enabled = V;
});
Settings.Instance.loggedInUser!.sendDiscordActionLog(
"${name} was ${enabled ? "enabled" : "disabled"}");
},
title: Text("Enabled"),
subtitle: Text("Whether mod is enabled or not"),