mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-31 07:33:00 +00:00 
			
		
		
		
	process improvements + new icons
This commit is contained in:
		| @@ -269,12 +269,18 @@ function page.grid:eventHandler(event) | ||||
| end | ||||
|  | ||||
| function page:rawExecute(s) | ||||
|  | ||||
|   local fn, m = loadstring("return (" .. s .. ')', 'lua') | ||||
|   if not fn then | ||||
|     fn, m = loadstring(s, 'lua') | ||||
|   local fn, m = loadstring('return (' .. s .. ')', 'lua') | ||||
|   if fn then | ||||
|     setfenv(fn, sandboxEnv) | ||||
|     m = { pcall(fn) } | ||||
|     fn = table.remove(m, 1) | ||||
|     if #m == 1 then | ||||
|       m = m[1] | ||||
|     end | ||||
|     return fn, m | ||||
|   end | ||||
|  | ||||
|   fn, m = loadstring(s, 'lua') | ||||
|   if fn then | ||||
|     setfenv(fn, sandboxEnv) | ||||
|     fn, m = pcall(fn) | ||||
| @@ -291,8 +297,6 @@ function page:executeStatement(statement) | ||||
|  | ||||
|   if s and m then | ||||
|     self:setResult(m) | ||||
|   elseif s and type(m) == 'boolean' then | ||||
|     self:setResult(m) | ||||
|   else | ||||
|     self.grid:setValues({ }) | ||||
|     self.grid:draw() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com