Disable all ChatMessage/FrameworkUpdate logic if FirstUse is set
This commit is contained in:
parent
df7cd6ea6f
commit
c58c1c206a
@ -53,7 +53,6 @@ namespace Pal.Client
|
||||
|
||||
public Plugin(DalamudPluginInterface pluginInterface)
|
||||
{
|
||||
|
||||
ECommonsMain.Init(pluginInterface, this, Module.SplatoonAPI);
|
||||
|
||||
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)
|
||||
{
|
||||
if (Service.Configuration.FirstUse)
|
||||
return;
|
||||
|
||||
if (type != (XivChatType)2105)
|
||||
return;
|
||||
|
||||
@ -216,6 +218,9 @@ namespace Pal.Client
|
||||
|
||||
private void OnFrameworkUpdate(Framework framework)
|
||||
{
|
||||
if (Service.Configuration.FirstUse)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
bool recreateLayout = false;
|
||||
@ -515,7 +520,6 @@ namespace Pal.Client
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private async Task FetchFloorStatistics()
|
||||
{
|
||||
if (Service.Configuration.Mode != Configuration.EMode.Online)
|
||||
|
Loading…
Reference in New Issue
Block a user