Commit Graph

65 Commits

Author SHA1 Message Date
Daniel Schulte 886e714873 Clean up action handlers 2020-11-22 21:43:30 +01:00
Daniel Schulte b116b89977 Initialize TUI lookup tables in tp_init instead of using static init 2020-11-22 21:38:14 +01:00
Daniel Schulte d3028c28b2 Optimize loading channel info by getting rid of nested SELECT statements 2020-11-22 21:31:26 +01:00
Daniel Schulte 87d85c60f3 Move more database stuff out of the main application file 2020-11-22 21:29:45 +01:00
Daniel Schulte e47089325d Use db_transaction helper class instead of using sqlite3_exec directly 2020-11-22 20:37:12 +01:00
Daniel Schulte 215de112c7 Remove lots of unnecessary "extern" keywords 2020-11-22 20:34:48 +01:00
Daniel Schulte 971e8fa99e Remove debug messages related to config file loading 2020-11-22 19:29:10 +01:00
Daniel Schulte baec1fdf2c Remove superfluous config object empty check
Empty objects obviously also don't contain the keys we're looking for.
2020-11-22 19:28:51 +01:00
Daniel Schulte 900cb9a3e1 Update message shown if no channels are configured 2020-11-22 19:19:28 +01:00
Daniel Schulte 71654fe32e Move some DB stuff into separate files and create the DB if it's not there 2020-11-22 19:18:45 +01:00
Daniel Schulte d43bb02f72 Fix get_selection: Allow the user to make a selection with the Enter key 2020-11-22 19:15:35 +01:00
Daniel Schulte 862c56d91e Add format-string version of tui_abort and use it to display SQLite errors 2020-11-22 18:13:46 +01:00
Daniel Schulte 1f64677fcf Make a backup of the area an overlay will occupy and restore it afterwards 2020-11-22 18:10:39 +01:00
Daniel Schulte 89f0c26484 Move handle_action to tui.h and use it in functions there 2020-11-22 18:09:17 +01:00
Daniel Schulte 71f9ebaed7 Initial commit 2020-11-22 16:17:14 +01:00