mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
Always show downloaded files in file manager.
shell.openItem is unsafe. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
@@ -100,10 +100,6 @@ export default class GeneralSection extends BaseSection {
|
||||
<div class="setting-description">${t.__('Force social login in app instead of browser')}</div>
|
||||
<div class="setting-control"></div>
|
||||
</div>
|
||||
<div class="setting-row" id="show-download-folder">
|
||||
<div class="setting-description">${t.__('Show downloaded files in file manager')}</div>
|
||||
<div class="setting-control"></div>
|
||||
</div>
|
||||
<div class="setting-row" id="add-custom-css">
|
||||
<div class="setting-description">
|
||||
${t.__('Add custom CSS')}
|
||||
@@ -164,7 +160,6 @@ export default class GeneralSection extends BaseSection {
|
||||
this.showCustomCSSPath();
|
||||
this.removeCustomCSS();
|
||||
this.downloadFolder();
|
||||
this.showDownloadFolder();
|
||||
this.updateQuitOnCloseOption();
|
||||
this.updatePromptDownloadOption();
|
||||
this.enableErrorReporting();
|
||||
@@ -473,18 +468,6 @@ export default class GeneralSection extends BaseSection {
|
||||
});
|
||||
}
|
||||
|
||||
showDownloadFolder(): void {
|
||||
this.generateSettingOption({
|
||||
$element: document.querySelector('#show-download-folder .setting-control'),
|
||||
value: ConfigUtil.getConfigItem('showDownloadFolder', false),
|
||||
clickHandler: () => {
|
||||
const newValue = !ConfigUtil.getConfigItem('showDownloadFolder');
|
||||
ConfigUtil.setConfigItem('showDownloadFolder', newValue);
|
||||
this.showDownloadFolder();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
updatePromptDownloadOption(): void {
|
||||
this.generateSettingOption({
|
||||
$element: document.querySelector('#prompt-download .setting-control'),
|
||||
|
||||
Reference in New Issue
Block a user