mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Fix example is_selected
This commit is contained in:
parent
7aa24dba2e
commit
aff4412677
@ -574,17 +574,3 @@ And all my other supporters! Very appreciated!
|
||||
Please support me if you like this project! It will help me keep engaged to update **Druid** and make it even better!
|
||||
|
||||
[](https://github.com/sponsors/insality) [](https://ko-fi.com/insality) [](https://www.buymeacoffee.com/insality)
|
||||
|
||||
|
||||
---
|
||||
|
||||
**Postmortem**
|
||||
|
||||
Thoughts, wrong decisions, future plans, and how to update correctly:
|
||||
|
||||
- No styles should exist.
|
||||
- Annotations should be updated or removed.
|
||||
- Non-explicit event parameters can cause confusion, particularly with `self` parameters.
|
||||
- There is room for performance optimization. Memory usage is not optimized, though it can still handle heavy-load GUIs like Panthera.
|
||||
- Creating custom components could be made easier.
|
||||
- There can be a much less code bindings between elements. Like bind_grid, update_size after some changes etc.
|
@ -131,7 +131,7 @@ local function select_start_example(self)
|
||||
-- Try load example from URL
|
||||
local example_name = html5.run("new URLSearchParams(window.location.search).get('example')")
|
||||
if example_name then
|
||||
local is_selected self.examples_list_view:select_example_by_name_id(example_name)
|
||||
local is_selected = self.examples_list_view:select_example_by_name_id(example_name)
|
||||
if is_selected then
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user