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,3 +1,3 @@
|
||||||
class Consts {
|
class Consts {
|
||||||
static const VERSION = "1.1.112324.1951";
|
static const VERSION = "1.1.112324.1957";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:servermanager/structs/discordHookHelper.dart';
|
||||||
|
|
||||||
import '../structs/mod.dart';
|
import '../structs/mod.dart';
|
||||||
import '../structs/settings.dart';
|
import '../structs/settings.dart';
|
||||||
|
@ -266,6 +267,9 @@ class ModPageState extends State<ModPage> {
|
||||||
setState(() {
|
setState(() {
|
||||||
enabled = V;
|
enabled = V;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Settings.Instance.loggedInUser!.sendDiscordActionLog(
|
||||||
|
"${name} was ${enabled ? "enabled" : "disabled"}");
|
||||||
},
|
},
|
||||||
title: Text("Enabled"),
|
title: Text("Enabled"),
|
||||||
subtitle: Text("Whether mod is enabled or not"),
|
subtitle: Text("Whether mod is enabled or not"),
|
||||||
|
|
|
@ -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
|
# 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
|
# 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.
|
# 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:
|
environment:
|
||||||
sdk: ">=3.1.4 <4.0.0"
|
sdk: ">=3.1.4 <4.0.0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue