MCPcopy
hub / github.com/callumalpass/tasknotes / updateVisibility

Method updateVisibility

src/ui/StatusBarService.ts:441–458  ·  view source on GitHub ↗

* Show or hide the status bar based on settings

()

Source from the content-addressed store, hash-verified

439 * Show or hide the status bar based on settings
440 */
441 updateVisibility(): void {
442 if (this.plugin.settings.showTrackedTasksInStatusBar) {
443 if (!this.statusBarElement) {
444 this.ensureTrackedStatusBarElement();
445 } else {
446 void this.updateStatusBar();
447 }
448 } else {
449 this.hide();
450 }
451
452 if (this.plugin.settings.showPomodoroInStatusBar) {
453 this.ensurePomodoroStatusBarElement();
454 this.updatePomodoroStatusBar();
455 } else {
456 this.hidePomodoroStatusBar();
457 }
458 }
459
460 /**
461 * Hide the status bar

Callers 3

renderFeaturesTabFunction · 0.80

Calls 6

updateStatusBarMethod · 0.95
hideMethod · 0.95
hidePomodoroStatusBarMethod · 0.95

Tested by

no test coverage detected