From e52e007fa1431e554400fdd5ad02eefd64b148fb Mon Sep 17 00:00:00 2001 From: ItsMicin Date: Wed, 24 Nov 2021 14:05:18 +0700 Subject: [PATCH 1/2] Update Utils.vala --- src/Utils.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.vala b/src/Utils.vala index c1655b6..bb119cb 100644 --- a/src/Utils.vala +++ b/src/Utils.vala @@ -1471,7 +1471,7 @@ namespace Gabut { private int table_settings (Sqlite.Database db) { string dir = Environment.get_user_special_dir (GLib.UserDirectory.DOWNLOAD).replace ("/", "\\/"); - return db.exec ("CREATE TABLE IF NOT EXISTS settings ( + return db.exec (@"CREATE TABLE IF NOT EXISTS settings ( id INTEGER PRIMARY KEY AUTOINCREMENT, rpcport TEXT NOT NULL, maxtries TEXT NOT NULL, From f88bd30103dd80da0daf8892621e2b320ae0f70a Mon Sep 17 00:00:00 2001 From: ItsMicin Date: Wed, 24 Nov 2021 14:06:57 +0700 Subject: [PATCH 2/2] Update Utils.vala --- src/Utils.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.vala b/src/Utils.vala index bb119cb..a56e421 100644 --- a/src/Utils.vala +++ b/src/Utils.vala @@ -1508,13 +1508,13 @@ namespace Gabut { } private void check_optdown () { - if ((db_table ("download") - 1) == DBDownload.FILEORDIR) { + if ((db_table ("download") - 1) != DBDownload.FILEORDIR) { if (db_table ("download") > 0) { GabutApp.db.exec ("DROP TABLE download;"); } table_download (GabutApp.db); } - if ((db_table ("options") - 1) == DBOption.SELECTFILE) { + if ((db_table ("options") - 1) != DBOption.SELECTFILE) { if (db_table ("options") > 0) { GabutApp.db.exec ("DROP TABLE options;"); }