Fix bug that updates the settings.json if the webapp is being disabled

This commit is contained in:
Lukas Rieger (Blue) 2023-01-15 11:43:22 +01:00
parent d9b6c526f8
commit e5729a767c
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ public class Plugin implements ServerEventListener {
this.api.register();
//save webapp settings again (for api-registered scripts and styles)
this.getBlueMap().getWebFilesManager().saveSettings();
if (webappConfig.isEnabled())
this.getBlueMap().getWebFilesManager().saveSettings();
//done
loaded = true;