Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP server as service (with settings in menu) #182

Merged
merged 4 commits into from
Jan 9, 2025
Merged

Conversation

drronnie85
Copy link
Collaborator

@drronnie85 drronnie85 commented Dec 29, 2024

@@ -136,6 +138,49 @@ void LauncherApp::run() {
ITEM::MENU("Мережі WiFi", [this]() { this->wifiManager(); }),
ITEM::MENU("Потужність WiFi", [this]() { this->setWiFiTxPower(); }),
ITEM::MENU("Звук", [this]() { this->runApp<SoundConfigApp>(); }),
ITEM::SUBMENU("Сервіси", {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я так розумію що більше двох рівнів вкладень меню, тут не підтримується, судячи з того як ти вирішив проблему з таблицею розділів :)
Сервіси було б непогано запхати в налаштування.

може залишити просто від цих трьох ITEM:MENU, ITEM:SUBMENU і ITEM:APP щось одне, наприклад вон той самий MENU, а всередини в лямбді організовати ще одне ITEM:MENU і т.д.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чого ж не пітримується? Налаштування - Сервіси - FTP - ...
Не хочеться рефакторити ITEM... бо ця структура доживає свої останні дні. По суті після додавання коллбеку в меню, можна стіорювати одразу його структуру, тоді вже і оптимізувати.
Зараз по суті APP та MENU відрізняються тільки наявністью дефолтної іконки

Опис: Клас для малювання сповіщень
--]]

WHITE = display.color565(255, 255, 255)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не очікував тут побачити код на луа :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поспіх. А він, як відомо, потрібен коли руку від собаки прибираєш)
Все виправив.

@drronnie85 drronnie85 marked this pull request as draft January 7, 2025 15:33
@drronnie85 drronnie85 marked this pull request as ready for review January 7, 2025 18:01
Copy link
Collaborator

@frostmorn frostmorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frostmorn frostmorn merged commit 717be3e into main Jan 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants