mirror of
https://github.com/mara-li/obsidian-simple-colored-folder.git
synced 2026-07-22 05:46:20 +00:00
fix: use private _loaded to prevents false positive warning about not loaded St.Settings
This commit is contained in:
parent
897918717d
commit
ab861b615f
2 changed files with 4 additions and 3 deletions
|
|
@ -29,8 +29,8 @@ export default class SimpleColoredFolder extends Plugin {
|
|||
);
|
||||
this.compiler = new ColorCompiler(this);
|
||||
this.style = this.compiler.style;
|
||||
|
||||
if (!this.app.plugins.enabledPlugins.has("obsidian-style-settings")) {
|
||||
const styleSettings = this.app.plugins.getPlugin("obsidian-style-settings");
|
||||
if (!styleSettings?._loaded) {
|
||||
new Notice(
|
||||
sanitizeHTMLToDom(
|
||||
dedent`<span class="spf-warning">${i18next.t("warning")}</span>`
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ export class SimpleColoredFolderSettingTab extends PluginSettingTab {
|
|||
const { containerEl } = this;
|
||||
|
||||
containerEl.empty();
|
||||
if (!this.app.plugins.enabledPlugins.has("obsidian-style-settings")) {
|
||||
const styleSettings = this.app.plugins.getPlugin("obsidian-style-settings");
|
||||
if (!styleSettings?._loaded) {
|
||||
await MarkdownRenderer.render(this.app, dedent`> [!warning]
|
||||
> ${i18next.t("notEnabled")}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue