Send a webhook alert when restart is required for mod list changes

This commit is contained in:
zontreck 2024-11-23 16:00:04 -07:00
parent 5be57fbca5
commit d64a34605c
6 changed files with 25 additions and 4 deletions

View file

@ -141,7 +141,7 @@ class HomePageState extends State<HomePage> {
},
),
SwitchListTile(
value: requireRestart,
value: requireRestart || settings.restartRequired,
onChanged: (V) {
setState(() {
requireRestart = V;
@ -149,7 +149,7 @@ class HomePageState extends State<HomePage> {
},
title: Text("Perform Restart"),
subtitle: Text(
"Whether a immediate server restart should be performed in combination with this wrapper settings update"),
"Whether a immediate server restart should be performed in combination with this wrapper settings update${settings.restartRequired ? "\n** A RESTART IS REQUIRED DUE TO MOD LIST CHANGES" : ""}"),
)
],
)),