mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 14:04:40 -04:00
fixed settings path for server config
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "library_creator.h"
|
||||
|
||||
#include "yacreader_libraries.h"
|
||||
|
||||
|
||||
ConsoleUILibraryCreator::ConsoleUILibraryCreator(QObject *parent) :
|
||||
@ -29,6 +29,12 @@ void ConsoleUILibraryCreator::createLibrary(const QString & name, const QString
|
||||
|
||||
libraryCreator->start();
|
||||
eventLoop.exec();
|
||||
|
||||
//TODO, at some point some checking is needed for avoiding duplicated libraries
|
||||
YACReaderLibraries yacreaderLibraries;
|
||||
yacreaderLibraries.load();
|
||||
yacreaderLibraries.addLibrary(name, path);
|
||||
yacreaderLibraries.save();
|
||||
}
|
||||
|
||||
void ConsoleUILibraryCreator::updateLibrary(const QString & path)
|
||||
|
Reference in New Issue
Block a user