Change popupActionBarLocation to top (#1222)

This commit is contained in:
toasted-nutbread 2021-01-10 16:49:40 -05:00 committed by GitHub
parent 7f07b905ab
commit 25080ac82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -283,7 +283,7 @@
"popupActionBarLocation": {
"type": "string",
"enum": ["left", "right", "top", "bottom"],
"default": "right"
"default": "top"
}
}
},

View File

@ -686,6 +686,7 @@ class OptionsUtil {
// Moved anki.sentenceExt to sentenceParsing.scanExtent.
// Added sentenceParsing.enableTerminationCharacters.
// Added sentenceParsing.terminationCharacters.
// Changed general.popupActionBarLocation.
for (const profile of options.profiles) {
profile.options.translation.textReplacements = {
searchOriginal: true,
@ -710,6 +711,7 @@ class OptionsUtil {
]
};
delete profile.options.anki.sentenceExt;
profile.options.general.popupActionBarLocation = 'top';
}
return options;
}

View File

@ -296,7 +296,7 @@ function createProfileOptionsUpdatedTestData1() {
maximumClipboardSearchLength: 1000,
popupCurrentIndicatorMode: 'triangle',
popupActionBarVisibility: 'auto',
popupActionBarLocation: 'right'
popupActionBarLocation: 'top'
},
audio: {
enabled: true,