@@ -456,32 +456,32 @@ export class InvioSettingTab extends PluginSettingTab {
456
456
457
457
// =============== Hosting Settings ======================
458
458
459
- const useHostDiv = containerEl . createEl ( "div" ) ;
460
- useHostDiv . createEl ( "h2" , { text : t ( 'settings_host' ) } ) ;
461
- new Setting ( useHostDiv )
462
- . setName ( t ( 'settings_host_switch_title' ) )
463
- . setDesc ( t ( 'settings_host_switch_desc' ) )
464
- . addToggle ( tog => {
465
- tog . setValue ( this . plugin . settings . useHost )
466
- . onChange ( async ( val ) => {
467
- this . plugin . settings . useHost = val ;
468
- await this . plugin . saveSettings ( ) ;
469
- if ( this . plugin . settings . useHost ) {
470
- await this . plugin . enableHostService ( )
471
- . catch ( err => {
472
- new Notice ( t ( 'settings_host_enable_error' ) ) ;
473
- } )
474
- . finally ( ( ) => {
475
- this . hide ( ) ;
476
- this . display ( ) ;
477
- } )
478
- } else {
479
- await this . plugin . disableHostService ( ) ;
480
- this . hide ( ) ;
481
- this . display ( ) ;
482
- }
483
- } )
484
- } )
459
+ // const useHostDiv = containerEl.createEl("div");
460
+ // useHostDiv.createEl("h2", { text: t('settings_host') });
461
+ // new Setting(useHostDiv)
462
+ // .setName(t('settings_host_switch_title'))
463
+ // .setDesc(t('settings_host_switch_desc'))
464
+ // .addToggle(tog => {
465
+ // tog.setValue(this.plugin.settings.useHost)
466
+ // .onChange(async (val) => {
467
+ // this.plugin.settings.useHost = val;
468
+ // await this.plugin.saveSettings();
469
+ // if (this.plugin.settings.useHost) {
470
+ // await this.plugin.enableHostService()
471
+ // .catch(err => {
472
+ // new Notice(t('settings_host_enable_error'));
473
+ // })
474
+ // .finally(() => {
475
+ // this.hide();
476
+ // this.display();
477
+ // })
478
+ // } else {
479
+ // await this.plugin.disableHostService();
480
+ // this.hide();
481
+ // this.display();
482
+ // }
483
+ // })
484
+ // })
485
485
486
486
if ( this . plugin . settings . useHost ) {
487
487
const hostingDiv = containerEl . createEl ( "div" , { cls : 'settings-config-section' } ) ;
0 commit comments