Skip to content

Commit

Permalink
Add trim on save option
Browse files Browse the repository at this point in the history
I think people who would use this would rather have it automatically every time you save, instead of having to click a button every time.
  • Loading branch information
bonjorno7 committed Nov 25, 2023
1 parent 4b1ec3a commit 03d12b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ THEME=
CHECK_NEW_VERSION=true
SOFTWARE_RENDERING=false
UI_SCALE=4
TRIM_ON_SAVE=false

---------------------------
function TIC()
Expand Down
1 change: 1 addition & 0 deletions src/studio/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ static void readConfig(Config* config)
readGlobalBool(lua, "CHECK_NEW_VERSION", &config->data.checkNewVersion);
readGlobalInteger(lua, "UI_SCALE", &config->data.uiScale);
readGlobalBool(lua, "SOFTWARE_RENDERING", &config->data.soft);
readGlobalBool(lua, "TRIM_ON_SAVE", &config->data.trim);

if(config->data.uiScale <= 0)
config->data.uiScale = 1;
Expand Down
1 change: 1 addition & 0 deletions src/studio/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ typedef struct
bool checkNewVersion;
bool cli;
bool soft;
bool trim;

struct StudioOptions
{
Expand Down

0 comments on commit 03d12b2

Please sign in to comment.