Disable all ChatMessage/FrameworkUpdate logic if FirstUse is set

This commit is contained in:
Liza 2022-11-01 19:20:43 +01:00
parent df7cd6ea6f
commit c58c1c206a

View File

@ -53,7 +53,6 @@ namespace Pal.Client
public Plugin(DalamudPluginInterface pluginInterface) public Plugin(DalamudPluginInterface pluginInterface)
{ {
ECommonsMain.Init(pluginInterface, this, Module.SplatoonAPI); ECommonsMain.Init(pluginInterface, this, Module.SplatoonAPI);
pluginInterface.Create<Service>(); pluginInterface.Create<Service>();
@ -181,6 +180,9 @@ namespace Pal.Client
private void OnChatMessage(XivChatType type, uint senderId, ref SeString sender, ref SeString seMessage, ref bool isHandled) private void OnChatMessage(XivChatType type, uint senderId, ref SeString sender, ref SeString seMessage, ref bool isHandled)
{ {
if (Service.Configuration.FirstUse)
return;
if (type != (XivChatType)2105) if (type != (XivChatType)2105)
return; return;
@ -216,6 +218,9 @@ namespace Pal.Client
private void OnFrameworkUpdate(Framework framework) private void OnFrameworkUpdate(Framework framework)
{ {
if (Service.Configuration.FirstUse)
return;
try try
{ {
bool recreateLayout = false; bool recreateLayout = false;
@ -515,7 +520,6 @@ namespace Pal.Client
} }
} }
private async Task FetchFloorStatistics() private async Task FetchFloorStatistics()
{ {
if (Service.Configuration.Mode != Configuration.EMode.Online) if (Service.Configuration.Mode != Configuration.EMode.Online)