mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Merged luisangelsm/yacreader/develop into develop
This commit is contained in:
parent
3f1b1f620b
commit
1c232b0549
Binary file not shown.
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 153 KiB |
@ -127,8 +127,6 @@ void MainWindowViewer::loadConfiguration()
|
|||||||
|
|
||||||
void MainWindowViewer::setupUI()
|
void MainWindowViewer::setupUI()
|
||||||
{
|
{
|
||||||
setWindowIcon(QIcon(":/images/icon.png"));
|
|
||||||
|
|
||||||
//setUnifiedTitleAndToolBarOnMac(true);
|
//setUnifiedTitleAndToolBarOnMac(true);
|
||||||
|
|
||||||
viewer = new Viewer(this);
|
viewer = new Viewer(this);
|
||||||
|
@ -387,7 +387,7 @@ void DBHelper::updateProgress(qulonglong libraryId, const ComicInfo &comicInfo)
|
|||||||
ComicDB comic = DBHelper::loadComic(comicInfo.id,db);
|
ComicDB comic = DBHelper::loadComic(comicInfo.id,db);
|
||||||
comic.info.currentPage = comicInfo.currentPage;
|
comic.info.currentPage = comicInfo.currentPage;
|
||||||
comic.info.hasBeenOpened = true;
|
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);
|
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())
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 163 KiB |
@ -114,8 +114,6 @@ LibraryWindow::LibraryWindow()
|
|||||||
|
|
||||||
void LibraryWindow::setupUI()
|
void LibraryWindow::setupUI()
|
||||||
{
|
{
|
||||||
setWindowIcon(QIcon(":/images/iconLibrary.png"));
|
|
||||||
|
|
||||||
setUnifiedTitleAndToolBarOnMac(true);
|
setUnifiedTitleAndToolBarOnMac(true);
|
||||||
|
|
||||||
libraryCreator = new LibraryCreator();
|
libraryCreator = new LibraryCreator();
|
||||||
|
@ -217,7 +217,7 @@ int main( int argc, char ** argv )
|
|||||||
|
|
||||||
LibraryWindow * mw = new LibraryWindow();
|
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
|
//connections to localServer
|
||||||
|
|
||||||
|
13
YACReaderLibraryServer/systemctl_service_instructions.txt
Normal file
13
YACReaderLibraryServer/systemctl_service_instructions.txt
Normal 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 |
Loading…
x
Reference in New Issue
Block a user