Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
BuffyBox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladimir Stoiakin
BuffyBox
Commits
b226eb18
Commit
b226eb18
authored
1 year ago
by
Johannes Marbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix shutdown message box not closing on decline
parent
5320429f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
unl0kr/main.c
+12
-2
12 additions, 2 deletions
unl0kr/main.c
with
13 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
b226eb18
...
...
@@ -15,6 +15,7 @@ If a change only affects particular applications, they are listed in parentheses
-
feat(buffyboard): Add fbdev force-refresh quirk via config
-
feat(buffyboard): Allow disabling input devices via config
-
feat(buffyboard): Add CLI flags for overriding geometry & DPI
-
fix(unl0kr): Shutdown message box doesn't close on decline
-
misc: Update lvgl to git master (2023-03-30)
## 3.0.0 (2024-03-22)
...
...
This diff is collapsed.
Click to expand it.
unl0kr/main.c
+
12
−
2
View file @
b226eb18
...
...
@@ -296,8 +296,18 @@ static void shutdown_mbox_confirmed_cb(lv_event_t *event) {
}
static
void
shutdown_mbox_declined_cb
(
lv_event_t
*
event
)
{
lv_obj_t
*
mbox
=
lv_event_get_target
(
event
);
lv_msgbox_close
(
mbox
);
// Find the containing message box for the clicked button
lv_obj_t
*
obj
=
lv_event_get_target
(
event
);
while
(
obj
&&
!
lv_obj_check_type
(
obj
,
&
lv_msgbox_class
))
{
obj
=
lv_obj_get_parent
(
obj
);
}
if
(
!
obj
)
{
bbx_log
(
BBX_LOG_LEVEL_ERROR
,
"Could not find containing message box for clicked button"
);
return
;
}
lv_msgbox_close
(
obj
);
}
static
void
keyboard_value_changed_cb
(
lv_event_t
*
event
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment