Options
This commit is contained in:
@@ -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>
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user