fixed load settings

This commit is contained in:
dazedcat19 2020-05-02 17:13:23 +08:00
parent d233941da9
commit 981055495c
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ unit uFavoritesManager;
interface
uses
Classes, SysUtils, fgl, Dialogs, ExtCtrls, IniFiles, lazutf8classes,
Classes, SysUtils, fgl, Dialogs, ExtCtrls, lazutf8classes,
LazFileUtils, uBaseUnit, uData, uDownloadsManager, WebsiteModules, FMDOptions,
httpsendthread, FavoritesDB, BaseThread, SimpleException, VirtualTrees;

View File

@ -11,7 +11,7 @@ uses
windows,
{$endif}
Interfaces, // this includes the LCL widgetset
Forms, LazFileUtils, IniFiles, simpleipc, sqlite3dyn, uBaseUnit,
Forms, LazFileUtils, jsonini, simpleipc, sqlite3dyn, uBaseUnit,
FMDVars, webp, CheckUpdate, DBUpdater, SelfUpdater, uDownloadsManager,
LuaWebsiteModules, LuaBase, SimpleException, Classes, sysutils, frmMain,
MultiLog, FileChannel, ssl_openssl_lib, blcksock, ssl_openssl;
@ -73,7 +73,7 @@ begin
if AppParams.IndexOf('--lua-dofile')<>-1 then
AlwaysLoadLuaFromFile:=True;
with TIniFile.Create(SETTINGS_FILE) do
with TJSONIniFile.Create(SETTINGS_FILE) do
try
CheckInstance := ReadBool('general', 'OneInstanceOnly', True);
EnableLogging := ReadBool('logger', 'Enabled', False);

View File

@ -10,7 +10,7 @@ uses
cmem,
{$endif}
Classes, SysUtils, zipper, FileUtil, LazFileUtils, LazUTF8, LazUTF8Classes,
Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, RegExpr, IniFiles, blcksock,
Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, RegExpr, blcksock,
ssl_openssl, ssl_openssl_lib, synacode, httpsendthread, uMisc, BaseThread,
SimpleTranslator, SimpleException;