extract a function
[?]
Mar 19, 2023, 6:48 AM
UUTUPEOJQBLCXRTXHU6W2QNDH536RH5M3GO6GZGSDEH2GANCD2GQCDependencies
- [2]
JMUD7T3Oget rid of ugly side-effects in tests - [3]
S3PNFXTBhandle missing cursors in settings - [4]
KKMFQDR4editing source code from within the app
Change contents
- replacement in source.lua at line 108[4.168537]→[4.168537:168600](∅→∅),[4.168600]→[2.12:121](∅→∅),[2.121]→[4.168715:169063](∅→∅),[4.168715]→[4.168715:169063](∅→∅),[4.169063]→[2.122:197](∅→∅)
-- maximize window to determine maximum allowable dimensionsApp.screen.resize(0, 0) -- maximizeDisplay_width, Display_height, App.screen.flags = App.screen.size()-- set up desired window dimensionsApp.screen.flags.resizable = trueApp.screen.flags.minwidth = math.min(Display_width, 200)App.screen.flags.minheight = math.min(Display_height, 200)App.screen.width, App.screen.height = settings.width, settings.height--? print('setting window from settings:', App.screen.width, App.screen.height)App.screen.resize(App.screen.width, App.screen.height, App.screen.flags)source.resize_window_from_settings(settings) - edit in source.lua at line 128
endfunction source.resize_window_from_settings(settings)-- maximize window to determine maximum allowable dimensionsApp.screen.resize(0, 0) -- maximizeDisplay_width, Display_height, App.screen.flags = App.screen.size()-- set up desired window dimensionsApp.screen.flags.resizable = trueApp.screen.flags.minwidth = math.min(Display_width, 200)App.screen.flags.minheight = math.min(Display_height, 200)App.screen.width, App.screen.height = settings.width, settings.height--? print('setting window from settings:', App.screen.width, App.screen.height)App.screen.resize(App.screen.width, App.screen.height, App.screen.flags)