mirror of
https://github.com/dazedcat19/FMD2.git
synced 2024-11-23 03:39:52 +00:00
fixed load settings
This commit is contained in:
parent
d233941da9
commit
981055495c
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user