Fix example is_selected

This commit is contained in:
Insality 2024-10-22 22:28:19 +03:00
parent 7aa24dba2e
commit aff4412677
2 changed files with 1 additions and 15 deletions

View File

@ -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!
[![Github-sponsors](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/insality) [![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/insality) [![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](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.

View File

@ -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