mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-08-04 05:07:06 -04:00
Make SettingsManager::setDownloadDir a void function
The current implementation doesn't have any effect on it being a bool
This commit is contained in:
parent
a887af01be
commit
8d6d6833e7
@ -73,12 +73,11 @@ void SettingsManager::setZoomFactor(qreal zoomFactor)
|
||||
emit(zoomChanged(zoomFactor));
|
||||
}
|
||||
|
||||
bool SettingsManager::setDownloadDir(QString downloadDir)
|
||||
void SettingsManager::setDownloadDir(QString downloadDir)
|
||||
{
|
||||
m_downloadDir = downloadDir;
|
||||
m_settings.setValue("download/dir", downloadDir);
|
||||
emit(downloadDirChanged(downloadDir));
|
||||
return true;
|
||||
}
|
||||
|
||||
void SettingsManager::initSettings()
|
||||
|
@ -31,7 +31,7 @@ public slots:
|
||||
void setKiwixServerPort(int port);
|
||||
void setKiwixServerIpAddress(QString ipAddress);
|
||||
void setZoomFactor(qreal zoomFactor);
|
||||
bool setDownloadDir(QString downloadDir);
|
||||
void setDownloadDir(QString downloadDir);
|
||||
private:
|
||||
void initSettings();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user