TiddlyWiki.org

Ticket #405 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Avoid multiple backstage bars

Reported by: SaqImtiaz Assigned to: SaqImtiaz
Priority: minor Milestone: 2.3
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

Sometimes it is desirable to have a plugin that can toggle the display of the backstage area during startup, depending on different configuration profiles for different users. However, currently running backstage.init() twice leads to two backstage bars (Something that happens if the plugin runs backstage.init() and the core does too). A simple if(!!backstage.button) test early in the function avoid this problem, and makes it easier for plugins to toggle the backstage area.

Patch is attached.

Attachments

BackstageInit.patch (406 bytes) - added by SaqImtiaz on 04/11/07 16:27:40.

Change History

04/11/07 16:27:40 changed by SaqImtiaz

  • attachment BackstageInit.patch added.

04/11/07 17:12:17 changed by SaqImtiaz

  • owner changed from MartinBudden to SaqImtiaz.
  • status changed from new to assigned.

12/11/07 12:11:10 changed by JeremyRuston

  • status changed from assigned to closed.
  • resolution set to fixed.

I've gone with a slightly different solution in changeset:2809, but after discussion with Saq it seems to deal with the underlying requirement.