From aff772b8510ce49b61263b93942b0611c5594641 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 16:15:46 -0400 Subject: [PATCH] Add validate handler to install selected packages from Welcome wizard --- sys/apps/Welcome.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/apps/Welcome.lua b/sys/apps/Welcome.lua index 5943b51..6d4f8f8 100644 --- a/sys/apps/Welcome.lua +++ b/sys/apps/Welcome.lua @@ -129,6 +129,19 @@ local page = UI.Page { text = 'More Packages...', event = 'packages', }, + validate = function(self) + local toInstall = { } + if self.chkTurtle.value then + table.insert(toInstall, 'remoteturtle') + end + if self.chkInventory.value then + table.insert(toInstall, 'inventory-manager') + end + for _, pkg in ipairs(toInstall) do + shell.run('package install ' .. pkg) + end + return true + end, }, contributors = UI.WizardPage { index = 5,