Skip to content

Commit c135c0b

Browse files
committed
fix: hide line authoring settings on mobile
1 parent 5076c37 commit c135c0b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/setting/settings.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,12 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
402402
})
403403
);
404404

405-
containerEl.createEl("br");
406-
containerEl.createEl("h3", { text: "Line author information" });
405+
if (plugin.gitManager instanceof SimpleGit) {
406+
containerEl.createEl("br");
407+
containerEl.createEl("h3", { text: "Line author information" });
407408

408-
this.addLineAuthorInfoSettings();
409+
this.addLineAuthorInfoSettings();
410+
}
409411
}
410412

411413
containerEl.createEl("br");

0 commit comments

Comments
 (0)