feat: js 通知支持 (#1376)

* feat: js 通知支持

* feat: 添加全局或者在配置组中单独禁用js的通知功能
This commit is contained in:
秋云
2025-04-02 21:40:14 +08:00
committed by GitHub
parent 057efe78a9
commit ffd7cfabbc
12 changed files with 244 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ using BetterGenshinImpact.Helpers;
using BetterGenshinImpact.Service;
using System;
using System.Threading;
using BetterGenshinImpact.Core.Script.Group;
namespace BetterGenshinImpact.GameTask
{
@@ -16,6 +17,7 @@ namespace BetterGenshinImpact.GameTask
{
private static TaskContext? _uniqueInstance;
private static object? InstanceLocker;
public ScriptGroupProject? CurrentScriptProject { get; set; }
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。