Merged luisangelsm/yacreader/develop into develop

This commit is contained in:
Felix Kauselmann 2017-12-11 11:00:52 +01:00
parent 3f1b1f620b
commit 1c232b0549
8 changed files with 16 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View File

@ -127,8 +127,6 @@ void MainWindowViewer::loadConfiguration()
void MainWindowViewer::setupUI()
{
setWindowIcon(QIcon(":/images/icon.png"));
//setUnifiedTitleAndToolBarOnMac(true);
viewer = new Viewer(this);

View File

@ -387,7 +387,7 @@ void DBHelper::updateProgress(qulonglong libraryId, const ComicInfo &comicInfo)
ComicDB comic = DBHelper::loadComic(comicInfo.id,db);
comic.info.currentPage = comicInfo.currentPage;
comic.info.hasBeenOpened = true;
comic.info.read = comicInfo.read || comicInfo.currentPage == comicInfo.numPages;
comic.info.read = comic.info.read || comic.info.currentPage == comic.info.numPages;
DBHelper::updateReadingRemoteProgress(comic.info,db);
@ -875,7 +875,7 @@ QList<ComicDB> DBHelper::getSortedComicsFromParent(qulonglong parentId, QSqlData
{
if(c1.info.number.isNull() && c2.info.number.isNull())
{
return naturalSortLessThanCI(c1.info.title.toString(), c2.info.title.toString());
return naturalSortLessThanCI(c1.name, c2.name);
}
else
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 163 KiB

View File

@ -114,8 +114,6 @@ LibraryWindow::LibraryWindow()
void LibraryWindow::setupUI()
{
setWindowIcon(QIcon(":/images/iconLibrary.png"));
setUnifiedTitleAndToolBarOnMac(true);
libraryCreator = new LibraryCreator();

View File

@ -217,7 +217,7 @@ int main( int argc, char ** argv )
LibraryWindow * mw = new LibraryWindow();
mw->connect(localServer,SIGNAL(comicUpdated(quint64, const ComicDB &)),mw,SLOT(updateComicsView(quint64, const ComicDB &)));
mw->connect(localServer,SIGNAL(comicUpdated(quint64, const ComicDB &)),mw,SLOT(updateComicsView(quint64, const ComicDB &)), Qt::QueuedConnection);
//connections to localServer

View File

@ -0,0 +1,13 @@
1. change the path used in ExecStart so it points to the location your headless server binary resides, skip this step if yacreaderlibraryserver is in your path.
2. copy the service file to ~/.local/share/systemd/user
3. enable the service file by running:
"systemclt --user enable yacreaderlibraryserver"
4. start the server by running:
"systemctl --user start yacreaderlibraryserver"
5. check the server status by running:
systemctl --user status yacreaderlibraryserver

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

After

Width:  |  Height:  |  Size: 188 B