From a7e34673e67242cc8ed8513602b8b1384d2fb9b4 Mon Sep 17 00:00:00 2001 From: peicuiping <168072318+peicuiping@users.noreply.github.com> Date: Thu, 9 May 2024 18:10:53 +0800 Subject: [PATCH] chore: remove repetitive words (#11785) --- frontend/device/gesturedetector.lua | 2 +- frontend/ui/trapper.lua | 2 +- frontend/ui/widget/imagewidget.lua | 2 +- plugins/kosync.koplugin/main.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/device/gesturedetector.lua b/frontend/device/gesturedetector.lua index e71646fd9..2c009ea28 100644 --- a/frontend/device/gesturedetector.lua +++ b/frontend/device/gesturedetector.lua @@ -1141,7 +1141,7 @@ function Contact:handleTwoFingerPan(buddy_contact) ges_ev._end_pos = nil end ges_ev.direction = gesture_detector.DIRECTION_TABLE[tpan_dir] - -- Use the the sum of both contacts' travel for the distance + -- Use the sum of both contacts' travel for the distance ges_ev.distance = tpan_dis + rpan_dis -- Some handlers might also want to know the distance between the two contacts on lift & down. ges_ev.span = end_distance diff --git a/frontend/ui/trapper.lua b/frontend/ui/trapper.lua index 0cc0a0f07..167ac833a 100644 --- a/frontend/ui/trapper.lua +++ b/frontend/ui/trapper.lua @@ -616,7 +616,7 @@ function Trapper:dismissableRunInSubprocess(task, trap_widget_or_string, task_re end -- The go_on_func resumed us: we have not been dismissed. -- Check if sub process has ended - -- Depending on the the size of what the child has to write, + -- Depending on the size of what the child has to write, -- it may has ended (if data fits in the kernel pipe buffer) or -- it may still be alive blocking on write() (if data exceeds -- the kernel pipe buffer) diff --git a/frontend/ui/widget/imagewidget.lua b/frontend/ui/widget/imagewidget.lua index de5d4aa24..7bfb7bd75 100644 --- a/frontend/ui/widget/imagewidget.lua +++ b/frontend/ui/widget/imagewidget.lua @@ -113,7 +113,7 @@ local ImageWidget = Widget:extend{ _max_off_center_y_ratio = 0, -- So we can reset self.scale_factor to its initial value in free(), in - -- case this same object is free'd but re-used and and re-render'ed + -- case this same object is free'd but re-used and re-render'ed _initial_scale_factor = nil, _bb = nil, diff --git a/plugins/kosync.koplugin/main.lua b/plugins/kosync.koplugin/main.lua index 8fa9f6cde..06baf7edd 100644 --- a/plugins/kosync.koplugin/main.lua +++ b/plugins/kosync.koplugin/main.lua @@ -680,7 +680,7 @@ function KOSync:updateProgress(ensure_networking, interactive, refresh_on_succes if interactive then showSyncError() end if err then logger.dbg("err:", err) end else - -- This is solely for onSuspend's sake, to clear the ghosting left by the the "Connected" InfoMessage + -- This is solely for onSuspend's sake, to clear the ghosting left by the "Connected" InfoMessage if refresh_on_success then -- Our top-level widget should be the "Connected to network" InfoMessage from NetworkMgr's reconnectOrShowNetworkMenu local widget = UIManager:getTopmostVisibleWidget()