mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-31 15:43:00 +00:00 
			
		
		
		
	wizard - modem fixes
This commit is contained in:
		| @@ -2364,8 +2364,8 @@ end | |||||||
| function UI.Wizard:eventHandler(event) | function UI.Wizard:eventHandler(event) | ||||||
| 	if event.type == 'nextView' then | 	if event.type == 'nextView' then | ||||||
| 		local currentView = Util.find(self.pages, 'enabled', true) | 		local currentView = Util.find(self.pages, 'enabled', true) | ||||||
| 		local nextView = Util.find(self.pages, 'index', currentView.index + 1) |  | ||||||
| 		if self:isViewValid() then | 		if self:isViewValid() then | ||||||
|  | 			local nextView = Util.find(self.pages, 'index', currentView.index + 1) | ||||||
| 			currentView:emit({ type = 'enable_view', next = nextView, current = currentView }) | 			currentView:emit({ type = 'enable_view', next = nextView, current = currentView }) | ||||||
| 		end | 		end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -30,7 +30,7 @@ end | |||||||
| -- create a psuedo-device named 'wireleess_modem' | -- create a psuedo-device named 'wireleess_modem' | ||||||
| kernel.hook('device_attach', function(_, eventData) | kernel.hook('device_attach', function(_, eventData) | ||||||
| 	local dev = device[eventData[1]] | 	local dev = device[eventData[1]] | ||||||
| 	if dev.type == 'modem' then | 	if dev and dev.type == 'modem' then | ||||||
| 		if setModem(dev) then | 		if setModem(dev) then | ||||||
| 			startNetwork() | 			startNetwork() | ||||||
| 		end | 		end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com