mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58:56 -04:00
Merge pull request #678 from kiwix/issue/676
Proper human friendly URLs for kiwix-serve
This commit is contained in:
commit
a66618c690
@ -24,7 +24,8 @@ KiwixApp::KiwixApp(int& argc, char *argv[])
|
|||||||
mp_downloader(nullptr),
|
mp_downloader(nullptr),
|
||||||
mp_manager(nullptr),
|
mp_manager(nullptr),
|
||||||
mp_mainWindow(nullptr),
|
mp_mainWindow(nullptr),
|
||||||
m_server(&m_library.getKiwixLibrary())
|
m_nameMapper(m_library.getKiwixLibrary(), false),
|
||||||
|
m_server(&m_library.getKiwixLibrary(), &m_nameMapper)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
m_translation.setTranslation(QLocale());
|
m_translation.setTranslation(QLocale());
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QErrorMessage>
|
#include <QErrorMessage>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
|
#include <kiwix/name_mapper.h>
|
||||||
|
|
||||||
|
|
||||||
class KiwixApp : public QtSingleApplication
|
class KiwixApp : public QtSingleApplication
|
||||||
@ -115,6 +116,7 @@ private:
|
|||||||
TabBar* mp_tabWidget;
|
TabBar* mp_tabWidget;
|
||||||
SideBarType m_currentSideType;
|
SideBarType m_currentSideType;
|
||||||
QErrorMessage* mp_errorDialog;
|
QErrorMessage* mp_errorDialog;
|
||||||
|
kiwix::HumanReadableNameMapper m_nameMapper;
|
||||||
kiwix::Server m_server;
|
kiwix::Server m_server;
|
||||||
Translation m_translation;
|
Translation m_translation;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user