Persist the default Git diff layout
This commit is contained in:
@@ -199,6 +199,20 @@ impl App {
|
||||
PreferenceSection::Git,
|
||||
"GIT DIFFS",
|
||||
column![
|
||||
row![
|
||||
hint(
|
||||
text("Default layout").size(13).width(Length::Fill),
|
||||
"Layout used whenever a file diff is opened. The control in the diff can still change that one view.",
|
||||
),
|
||||
pick_list(
|
||||
&GIT_DIFF_LAYOUTS[..],
|
||||
Some(self.preference_draft.git_diff_layout),
|
||||
Message::PreferenceGitDiffLayoutChanged,
|
||||
)
|
||||
.width(240),
|
||||
]
|
||||
.spacing(12)
|
||||
.align_y(Alignment::Center),
|
||||
row![
|
||||
hint(
|
||||
text("Algorithm").size(13).width(Length::Fill),
|
||||
|
||||
Reference in New Issue
Block a user