mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 13:18:50 +00:00
Refactor
This commit is contained in:
parent
e2c836794b
commit
ce94e0ba4d
2 changed files with 2 additions and 2 deletions
|
@ -11,10 +11,11 @@ namespace v2rayN
|
||||||
private SQLiteConnection _db;
|
private SQLiteConnection _db;
|
||||||
private SQLiteAsyncConnection _dbAsync;
|
private SQLiteAsyncConnection _dbAsync;
|
||||||
private static readonly object objLock = new();
|
private static readonly object objLock = new();
|
||||||
|
public const string _configDB = "guiNDB.db";
|
||||||
|
|
||||||
public SqliteHelper()
|
public SqliteHelper()
|
||||||
{
|
{
|
||||||
_connstr = Utils.GetConfigPath(Global.ConfigDB);
|
_connstr = Utils.GetConfigPath(_configDB);
|
||||||
_db = new SQLiteConnection(_connstr, false);
|
_db = new SQLiteConnection(_connstr, false);
|
||||||
_dbAsync = new SQLiteAsyncConnection(_connstr, false);
|
_dbAsync = new SQLiteAsyncConnection(_connstr, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ namespace v2rayN
|
||||||
|
|
||||||
public const string PromotionUrl = @"aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw=";
|
public const string PromotionUrl = @"aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw=";
|
||||||
public const string ConfigFileName = "guiNConfig.json";
|
public const string ConfigFileName = "guiNConfig.json";
|
||||||
public const string ConfigDB = "guiNDB.db";
|
|
||||||
public const string CoreConfigFileName = "config.json";
|
public const string CoreConfigFileName = "config.json";
|
||||||
public const string CorePreConfigFileName = "configPre.json";
|
public const string CorePreConfigFileName = "configPre.json";
|
||||||
public const string CoreSpeedtestConfigFileName = "configSpeedtest.json";
|
public const string CoreSpeedtestConfigFileName = "configSpeedtest.json";
|
||||||
|
|
Loading…
Reference in a new issue