fix/messagelogger (#428)
* add serialization for settings and a myraid of other fixes rewrites. * test dummy settings * fix issue with commits not being logged, rewrite some elements * remove dummy setting * thororoen you did this --------- Co-authored-by: Jake <jake@Georges-MacBook-Air.local>
This commit is contained in:
parent
efd0b2b205
commit
9a9512bffd
1 changed files with 6 additions and 5 deletions
|
|
@ -313,7 +313,7 @@ const settings = definePluginSettings({
|
|||
description: "Show visual differences between edited message versions",
|
||||
default: false,
|
||||
onChange: value => {
|
||||
if (value && settings.store.separatedDiffs) {
|
||||
if (!value && settings.store.separatedDiffs) {
|
||||
settings.store.separatedDiffs = false;
|
||||
}
|
||||
},
|
||||
|
|
@ -322,10 +322,11 @@ const settings = definePluginSettings({
|
|||
type: OptionType.BOOLEAN,
|
||||
description: "Separate addition and removals in diffs for a more readable differential",
|
||||
default: false,
|
||||
onChange: value => {
|
||||
if (value && settings.store.showEditDiffs) {
|
||||
settings.store.showEditDiffs = false;
|
||||
}
|
||||
},
|
||||
}, {
|
||||
separatedDiffs: {
|
||||
disabled() {
|
||||
return !this.store.showEditDiffs;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue