Skip to content

Commit

Permalink
fix: remove tree structure from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Jan 8, 2022
1 parent 0fd2f95 commit 5af00ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,6 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
})
);

new Setting(containerEl)
.setName("Use tree layout for sidebar")
.setDesc("If turned on, the tree layout will be the default.")
.addToggle((toggle) =>
toggle
.setValue(plugin.settings.treeStructure)
.onChange((value) => {
plugin.settings.treeStructure = value;
plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Custom Git binary path")
.addText((cb) => {
Expand Down
6 changes: 5 additions & 1 deletion src/ui/sidebar/gitView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@
class="nav-action-button"
aria-label="Change Layout"
bind:this={layoutBtn}
on:click={() => (showTree = !showTree)}
on:click={() => {
showTree = !showTree;
plugin.settings.treeStructure = showTree;
plugin.saveSettings();
}}
/>
</div>
<div
Expand Down

0 comments on commit 5af00ae

Please sign in to comment.