mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -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_manager(nullptr),
|
||||
mp_mainWindow(nullptr),
|
||||
m_server(&m_library.getKiwixLibrary())
|
||||
m_nameMapper(m_library.getKiwixLibrary(), false),
|
||||
m_server(&m_library.getKiwixLibrary(), &m_nameMapper)
|
||||
{
|
||||
try {
|
||||
m_translation.setTranslation(QLocale());
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <QApplication>
|
||||
#include <QErrorMessage>
|
||||
#include <QTranslator>
|
||||
#include <kiwix/name_mapper.h>
|
||||
|
||||
|
||||
class KiwixApp : public QtSingleApplication
|
||||
@ -115,6 +116,7 @@ private:
|
||||
TabBar* mp_tabWidget;
|
||||
SideBarType m_currentSideType;
|
||||
QErrorMessage* mp_errorDialog;
|
||||
kiwix::HumanReadableNameMapper m_nameMapper;
|
||||
kiwix::Server m_server;
|
||||
Translation m_translation;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user