this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

#1950: better fix for the devmode

+9 -2
+9 -2
src/studio/studio.c
··· 1748 1748 static bool isDevMode(Studio* studio) 1749 1749 { 1750 1750 tic_mem* tic = studio->tic; 1751 - return strcmp(tic_tool_metatag(tic->cart.code.data, "devmode", tic_get_script(tic)->singleComment), "on") == 0 1752 - || getConfig(studio)->options.devmode; 1751 + const char *devmode = tic_tool_metatag(tic->cart.code.data, "devmode", tic_get_script(tic)->singleComment); 1752 + 1753 + if(strcmp(devmode, "on") == 0) 1754 + return true; 1755 + 1756 + else if(strcmp(devmode, "off") == 0) 1757 + return false; 1758 + 1759 + return getConfig(studio)->options.devmode; 1753 1760 } 1754 1761 1755 1762 static void processShortcuts(Studio* studio)