Skip to content

Commit 93a6d38

Browse files
authored
SpicesUpdate v7.6.5: Improves stability (#6837)
1 parent caa70b9 commit 93a6d38

File tree

3 files changed

+32
-31
lines changed

3 files changed

+32
-31
lines changed

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/6.0/applet.js

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v7.6.5~20250202
2+
* Fixes #6776.
3+
* Code: No 'bind(this)' calls anymore.
4+
15
### v7.6.4~20250131
26
* Improves directory and file management.
37
* Code clean-up.

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Spices Update",
44
"max-instances": "1",
55
"hide-configuration": false,
6-
"version": "7.6.4",
6+
"version": "7.6.5",
77
"description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.",
88
"multiversion": true,
99
"cinnamon-version": [

0 commit comments

Comments
 (0)