Skip to content

Commit

Permalink
small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nakst committed Jul 6, 2021
1 parent c187984 commit 479a9ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gf2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ void LoadSettings(bool earlyPass) {
char path[PATH_MAX];
getcwd(path, sizeof(path));
if (0 == strcmp(path, state.key)) currentFolderIsTrusted = true;
} else if (0 == strcmp(state.section, "theme") && earlyPass && state.keyBytes && state.valueBytes) {
} else if (0 == strcmp(state.section, "theme") && !earlyPass && state.keyBytes && state.valueBytes) {
for (uintptr_t i = 0; i < sizeof(themeItems) / sizeof(themeItems[0]); i++) {
if (strcmp(state.key, themeItems[i])) continue;
ui.theme.colors[i] = strtoul(state.value, nullptr, 16);
Expand Down
4 changes: 3 additions & 1 deletion windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ UIElement *SourceWindowCreate(UIElement *parent) {
return &displayCode->e;
}

void SourceWindowUpdate(const char *data, UIElement *) {
void SourceWindowUpdate(const char *data, UIElement *element) {
bool changedSourceLine = false;

const char *line = data;
Expand Down Expand Up @@ -353,6 +353,8 @@ void SourceWindowUpdate(const char *data, UIElement *) {

autoPrintExpressionLine = currentLine;
}

UIElementRefresh(element);
}

//////////////////////////////////////////////////////
Expand Down

0 comments on commit 479a9ce

Please sign in to comment.