Fixed issues with saving book and position after relaunching app
This commit is contained in:
parent
eca1da3500
commit
ca5d362267
3 changed files with 5 additions and 2 deletions
|
@ -10,7 +10,7 @@ Name[pt_BR]=Livros
|
|||
Name[ru]=Книги
|
||||
Name[sv]=Böcker
|
||||
Comment=E-Book Reader
|
||||
Exec=/usr/bin/org.monich.harbour.books
|
||||
Exec=org.monich.harbour.books
|
||||
Icon=org.monich.harbour.books
|
||||
X-Nemo-Application-Type=silica-qt5
|
||||
|
||||
|
@ -18,4 +18,5 @@ X-Nemo-Application-Type=silica-qt5
|
|||
Permissions=Documents;Downloads;RemovableMedia;Audio
|
||||
OrganizationName=org.monich
|
||||
ApplicationName=harbour.books
|
||||
ExecDBus=/usr/bin/org.monich.harbour.books %u
|
||||
ExecDBus=/usr/bin/org.monich.harbour.books
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
# define BOOKS_SETTINGS_MENU true
|
||||
#endif
|
||||
|
||||
#define BOOKS_SETTINGS_PATH "org.monich/harbour.books"
|
||||
#define BOOKS_DBUS_SERVICE BOOKS_DBUS_INTERFACE
|
||||
#define BOOKS_DCONF_ROOT "/apps/" BOOKS_APP_NAME "/"
|
||||
#define BOOKS_DATA_ROOT "usr/share/" BOOKS_APP_NAME
|
||||
|
|
|
@ -104,6 +104,7 @@ BooksStorage::Private::Private(
|
|||
{
|
||||
QString cfgDir;
|
||||
cfgDir = QString::fromStdString(ZLibrary::ApplicationWritableDirectory());
|
||||
cfgDir.replace(QString(BOOKS_APP_NAME),QString(BOOKS_SETTINGS_PATH));
|
||||
if (!cfgDir.endsWith('/')) cfgDir += '/';
|
||||
QString subDir;
|
||||
switch (aType) {
|
||||
|
|
Loading…
Reference in a new issue