mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
I accidentally ignored ALL sources, not just new ones
This commit is contained in:
@@ -124,12 +124,6 @@ COMMIT;";
|
||||
// Add the hash to the temporary Dictionary
|
||||
hashes.Add(hash, hashid);
|
||||
|
||||
// If we don't care about source, stop here
|
||||
if (_ignore)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Now try to determine the source for the file based on the name
|
||||
string source = GetSourceFromFileName(Path.GetFileName(file));
|
||||
int sourceid = 0;
|
||||
@@ -147,6 +141,9 @@ COMMIT;";
|
||||
}
|
||||
}
|
||||
|
||||
// Only if we're not ignoring new sources should be ask the user for input
|
||||
if (!_ignore)
|
||||
{
|
||||
// If the source is blank, ask the user to supply one
|
||||
while (source == "" && sourceid == 0)
|
||||
{
|
||||
@@ -207,6 +204,7 @@ COMMIT;";
|
||||
sourceid = sources[source];
|
||||
}
|
||||
// Otherwise, we should already have an ID
|
||||
}
|
||||
|
||||
// Add the source and system link to the database
|
||||
string uquery = @"INSERT OR IGNORE INTO datsdata (id, key, value)
|
||||
|
||||
Reference in New Issue
Block a user