@@ -326,7 +326,7 @@ class SpicesUpdate extends IconApplet {
326326 this . settings . bind (
327327 "general_frequency" ,
328328 "general_frequency" ,
329- this . on_frequency_changed . bind ( this )
329+ ( ) => { this . on_frequency_changed ( ) }
330330 ) ;
331331 //~ this.refreshInterval = QUICK() ? 720 * this.general_frequency : 3600 * this.general_frequency;
332332 this . refreshInterval = 3600 * this . general_frequency ;
@@ -385,25 +385,25 @@ class SpicesUpdate extends IconApplet {
385385 this . settings . bind (
386386 "general_warning" ,
387387 "general_warning" ,
388- this . updateUI . bind ( this )
388+ ( ) => { this . updateUI ( ) }
389389 ) ;
390390
391391 this . settings . bind (
392392 "events_color" ,
393393 "events_color" ,
394- this . updateUI . bind ( this )
394+ ( ) => { this . updateUI ( ) }
395395 ) ;
396396
397397 this . settings . bind (
398398 "processing_color" ,
399399 "processing_color" ,
400- this . updateUI . bind ( this )
400+ ( ) => { this . updateUI ( ) }
401401 ) ;
402402
403403 this . settings . bind (
404404 "general_notifications" ,
405405 "general_notifications" ,
406- this . on_settings_changed . bind ( this )
406+ ( ) => { this . on_settings_changed ( ) }
407407 ) ;
408408
409409 this . settings . bind (
@@ -433,19 +433,19 @@ class SpicesUpdate extends IconApplet {
433433 this . settings . bind (
434434 "displayType" ,
435435 "displayType" ,
436- this . on_display_type_changed . bind ( this )
436+ ( ) => { this . on_display_type_changed ( ) }
437437 ) ;
438438
439439 this . settings . bind (
440440 "general_hide" ,
441441 "general_hide" ,
442- this . on_display_type_changed . bind ( this )
442+ ( ) => { this . on_display_type_changed ( ) }
443443 ) ;
444444
445445 this . settings . bind (
446446 "tooltip_max_width_screen_percentage" ,
447447 "tooltip_max_width_screen_percentage" ,
448- this . on_tooltip_max_width_screen_percentage_changed . bind ( this )
448+ ( ) => { this . on_tooltip_max_width_screen_percentage_changed ( ) }
449449 ) ;
450450
451451 this . settings . bind (
@@ -457,13 +457,13 @@ class SpicesUpdate extends IconApplet {
457457 this . settings . bind (
458458 "check_applets" , // The setting key
459459 "check_applets" , // The property to manage (this.check_applets)
460- this . on_settings_changed . bind ( this ) // Callback when value changes
460+ ( ) => { this . on_settings_changed ( ) } // Callback when value changes
461461 ) ;
462462
463463 this . settings . bind (
464464 "check_new_applets" ,
465465 "check_new_applets" ,
466- this . on_settings_changed . bind ( this )
466+ ( ) => { this . on_settings_changed ( ) }
467467 ) ;
468468
469469 this . settings . bind (
@@ -476,20 +476,20 @@ class SpicesUpdate extends IconApplet {
476476 this . settings . bind (
477477 "unprotected_applets" ,
478478 "unprotected_applets" ,
479- this . populateSettingsUnprotectedApplets . bind ( this )
479+ ( ) => { this . populateSettingsUnprotectedApplets ( ) }
480480 ) ;
481481
482482 // Desklets
483483 this . settings . bind (
484484 "check_desklets" ,
485485 "check_desklets" ,
486- this . on_settings_changed . bind ( this )
486+ ( ) => { this . on_settings_changed ( ) }
487487 ) ;
488488
489489 this . settings . bind (
490490 "check_new_desklets" ,
491491 "check_new_desklets" ,
492- this . on_settings_changed . bind ( this )
492+ ( ) => { this . on_settings_changed ( ) }
493493 ) ;
494494
495495 this . settings . bind (
@@ -502,85 +502,82 @@ class SpicesUpdate extends IconApplet {
502502 this . settings . bind (
503503 "unprotected_desklets" ,
504504 "unprotected_desklets" ,
505- this . populateSettingsUnprotectedDesklets . bind ( this )
505+ ( ) => { this . populateSettingsUnprotectedDesklets ( ) }
506506 ) ;
507507
508508 // Extensions
509509 this . settings . bind (
510510 "check_extensions" ,
511511 "check_extensions" ,
512- this . on_settings_changed . bind ( this )
512+ ( ) => { this . on_settings_changed ( ) }
513513 ) ;
514514
515515 this . settings . bind (
516516 "check_new_extensions" ,
517517 "check_new_extensions" ,
518- this . on_settings_changed . bind ( this ) ,
519- null ) ;
518+ ( ) => { this . on_settings_changed ( ) }
519+ ) ;
520520
521521 this . settings . bind (
522522 "exp_extensions" ,
523- "exp_extensions" ,
524- null
523+ "exp_extensions"
525524 ) ;
526525 this . exp_extensions = "%s\n%s\n%s" . format ( EXP1 [ "extensions" ] , EXP2 [ "extensions" ] , EXP3 ) ;
527526
528527 this . settings . bind (
529528 "unprotected_extensions" ,
530529 "unprotected_extensions" ,
531- this . populateSettingsUnprotectedExtensions . bind ( this )
530+ ( ) => { this . populateSettingsUnprotectedExtensions ( ) }
532531 ) ;
533532
534533 // Themes
535534 this . settings . bind (
536535 "check_themes" ,
537536 "check_themes" ,
538- this . on_settings_changed . bind ( this )
537+ ( ) => { this . on_settings_changed ( ) }
539538 ) ;
540539
541540 this . settings . bind (
542541 "check_new_themes" ,
543542 "check_new_themes" ,
544- this . on_settings_changed . bind ( this )
543+ ( ) => { this . on_settings_changed ( ) }
545544 ) ;
546545
547546 this . settings . bind (
548547 "exp_themes" ,
549- "exp_themes" ,
550- null
548+ "exp_themes"
551549 ) ;
552550 this . exp_themes = "%s\n%s\n%s" . format ( EXP1 [ "themes" ] , EXP2 [ "themes" ] , EXP3 ) ;
553551
554552 this . settings . bind (
555553 "unprotected_themes" ,
556554 "unprotected_themes" ,
557- this . populateSettingsUnprotectedThemes . bind ( this )
555+ ( ) => { this . populateSettingsUnprotectedThemes ( ) }
558556 ) ;
559557
560558 // Nemo actions
561559 this . settings . bind (
562560 "check_actions" ,
563561 "check_actions" ,
564- this . on_settings_changed . bind ( this )
562+ ( ) => { this . on_settings_changed ( ) }
565563 ) ;
566564
567565 this . settings . bind (
568566 "check_new_actions" ,
569567 "check_new_actions" ,
570- this . on_settings_changed . bind ( this )
568+ ( ) => { this . on_settings_changed ( ) }
571569 ) ;
572570
573571 this . settings . bind (
574572 "exp_actions" ,
575- "exp_actions" ,
576- null
573+ "exp_actions"
577574 ) ;
578575 this . exp_actions = "%s\n%s\n%s" . format ( EXP1 [ "actions" ] , EXP2 [ "actions" ] , EXP3 ) ;
579576
580577 this . settings . bind (
581578 "unprotected_actions" ,
582579 "unprotected_actions" ,
583- this . populateSettingsUnprotectedActions . bind ( this )
580+ ( ) => { this . populateSettingsUnprotectedActions ( ) }
584581 ) ;
585582 } // End of get_SU_settings
586583
0 commit comments