mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Inform main window that an OS has been added.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2017-05-11 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Workers.cs:
|
||||
Inform main window that an OS has been added.
|
||||
|
||||
2017-05-11 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* DBOps.cs:
|
||||
|
||||
@@ -592,11 +592,10 @@ namespace osrepodbmgr.Core
|
||||
|
||||
if(UpdateProgress != null)
|
||||
UpdateProgress(null, "Adding OS information", counter, Context.hashes.Count);
|
||||
long osId;
|
||||
dbCore.DBOps.AddOS(Context.dbInfo, out osId);
|
||||
dbCore.DBOps.AddOS(Context.dbInfo, out Context.dbInfo.id);
|
||||
if(UpdateProgress != null)
|
||||
UpdateProgress(null, "Creating OS table", counter, Context.hashes.Count);
|
||||
dbCore.DBOps.CreateTableForOS(osId);
|
||||
dbCore.DBOps.CreateTableForOS(Context.dbInfo.id);
|
||||
|
||||
counter = 0;
|
||||
foreach(KeyValuePair<string, DBFile> kvp in Context.hashes)
|
||||
@@ -604,7 +603,7 @@ namespace osrepodbmgr.Core
|
||||
if(UpdateProgress != null)
|
||||
UpdateProgress(null, "Adding files to OS in database", counter, Context.hashes.Count);
|
||||
|
||||
dbCore.DBOps.AddFileToOS(kvp.Value, osId);
|
||||
dbCore.DBOps.AddFileToOS(kvp.Value, Context.dbInfo.id);
|
||||
|
||||
counter++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user