From 0e354b8d2f3c713034919eadc232880d0e263516 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 23 Nov 2024 18:18:43 -0700 Subject: [PATCH] Adds some more action logging --- lib/consts.dart | 2 +- lib/pages/ServerSettings.dart | 4 ++++ lib/pages/autorestart.dart | 3 +++ pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/consts.dart b/lib/consts.dart index 220c391..b9e3858 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -1,3 +1,3 @@ class Consts { - static const VERSION = "1.1.112324.1742"; + static const VERSION = "1.1.112324.1803"; } diff --git a/lib/pages/ServerSettings.dart b/lib/pages/ServerSettings.dart index eadc2ed..b33f43b 100644 --- a/lib/pages/ServerSettings.dart +++ b/lib/pages/ServerSettings.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:servermanager/structs/settings.dart'; import '../structs/serversettings.dart'; @@ -110,6 +111,9 @@ class ServerSettingsState extends State { children: [ ElevatedButton( onPressed: () { + Settings.Instance.loggedInUser! + .sendDiscordActionLog("Updated Server Settings"); + Navigator.pop( context, ServerSettings( diff --git a/lib/pages/autorestart.dart b/lib/pages/autorestart.dart index aa2944c..f4751a2 100644 --- a/lib/pages/autorestart.dart +++ b/lib/pages/autorestart.dart @@ -118,6 +118,9 @@ class AutoRestartState extends State { children: [ ElevatedButton( onPressed: () { + settings.loggedInUser!.sendDiscordActionLog( + "Updated AutoRestart Information\n\nEnabled: ${enabled}\nTimer: ${time}"); + Navigator.pop(context, AutomaticRestartInfo(enabled: enabled, time: time)); }, diff --git a/pubspec.yaml b/pubspec.yaml index a2e872d..8398dad 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+1742 +version: 1.1.112324+1803 environment: sdk: ">=3.1.4 <4.0.0"