Skip to content

Commit

Permalink
Merge pull request #10 from torikulhabib/master
Browse files Browse the repository at this point in the history
Lite
  • Loading branch information
torikulhabib authored Nov 24, 2021
2 parents 92ad29e + f88bd30 commit 1616203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;");
}
Expand Down

0 comments on commit 1616203

Please sign in to comment.