Fix mods page not sending enabled/disabled setting flag change to the log
This commit is contained in:
parent
3b7876532b
commit
e350660228
3 changed files with 6 additions and 2 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue