Skip to content

Commit 49489d9

Browse files
committed
Fix issues
Signed-off-by: AnErrupTion <anerruption@disroot.org>
1 parent 01055bc commit 49489d9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/i18n/strings_en.g.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@ class TranslationsSettingsPrefDescriptionsEn {
686686
/// en: 'Automatically switches back to the pen after using the eraser'
687687
String get disableEraserAfterUse => 'Automatically switches back to the pen after using the eraser';
688688

689+
/// en: 'Eraser on stylus button press and release'
690+
String get eraserOnStylusButtonPressAndRelease => 'Eraser on stylus button press and release';
691+
689692
/// en: 'Larger images will be compressed'
690693
String get maxImageSize => 'Larger images will be compressed';
691694

lib/pages/editor/editor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ class EditorState extends State<Editor> {
744744
// whether the stylus button is or was pressed
745745
stylusButtonPressed = stylusButtonPressed || buttonPressed;
746746

747-
if (!Prefs.eraserOnStylusButtonPressAndRelease.value) {
747+
if (!stows.eraserOnStylusButtonPressAndRelease.value) {
748748
// standard behavior of stylus button, while holding is erasing
749749
if (isHovering) {
750750
if (buttonPressed) {

0 commit comments

Comments
 (0)