1
0
This commit is contained in:
Scott E. Graves
2017-04-30 23:28:04 -05:00
parent b050618ea3
commit 6ab21cd76e
3 changed files with 28 additions and 6 deletions

View File

@@ -190,6 +190,8 @@
<input type="checkbox" id="ID_SettingsAutoStart"><br><br>
<h2>Launch file manager on mount</h2>
<input type="checkbox" id="ID_SettingsLaunchFileManager"><br><br>
<h2>Close to system tray</h2>
<input type="checkbox" id="ID_SettingsCloseToTray"><br><br>
<h2>Use Bundled siad</h2>
<input type="checkbox" id="ID_SettingsLaunchServer"><br><br>
<h2>API Port</h2>

View File

@@ -187,6 +187,11 @@
setChecked('ID_SettingsLaunchFileManager', launch);
}
},
setCloseToTray: (closeToTray) => {
if (document.getElementById('sia_settings_window').classList.contains('hidden-element')) {
setChecked('ID_SettingsCloseToTray', closeToTray);
}
},
displayShutdownWindow: () => {
const div = document.getElementById('shutdown_window');
document.body.innerHTML = '';
@@ -347,7 +352,8 @@
'ApiPort': getValue('ID_SettingsApiPort'),
'HostPort': getValue('ID_SettingsHostPort'),
'RpcPort': getValue('ID_SettingsRPCPort'),
'LaunchFileManager': getChecked('ID_SettingsLaunchFileManager')
'LaunchFileManager': getChecked('ID_SettingsLaunchFileManager'),
'CloseToTray': getChecked('ID_SettingsCloseToTray')
}, (success, reason) => {
if (success) {
beginMainApplication();