[MM-35454] Fix default downloads path for Windows and Linux, only set for the app if the path is not blank (#1583)

* [MM-35454] Fix default downloads path for Windows and Linux, only set for the app if the path is not blank

* Default all other OSes other than Mac/Windows to unix standard
This commit is contained in:
Devin Binnie
2021-05-05 12:54:21 -04:00
committed by GitHub
parent 61c668d77b
commit 87bbad13fa
2 changed files with 16 additions and 2 deletions

View File

@@ -257,7 +257,9 @@ function handleConfigSynchronize() {
// TODO: send this to server manager
WindowManager.setConfig(config.data);
setUnreadBadgeSetting(config.data.showUnreadBadge);
app.setPath('downloads', config.data.downloadLocation);
if (config.data.downloadLocation) {
app.setPath('downloads', config.data.downloadLocation);
}
if (app.isReady()) {
WindowManager.sendToRenderer(RELOAD_CONFIGURATION);
}