Skip to content

Commit

Permalink
Make the title show the export path
Browse files Browse the repository at this point in the history
  • Loading branch information
madd-games committed Mar 19, 2024
1 parent 63b780c commit abc7ef5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/goxel.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,12 @@ static void update_window_title(void)
bool changed;

changed = image_get_key(goxel.image) != goxel.image->saved_key;
sprintf(buf, "Goxel %s%s %s%s",
sprintf(buf, "Goxel %s%s %s%s%s",
GOXEL_VERSION_STR,
DEBUG ? " (debug)" : "",
changed ? "*" : "",
goxel.image->path ?: "");
goxel.image->path ?: goxel.image->export_path ?: "",
goxel.image->export_path != NULL ? " (exported)" : "");
sys_set_window_title(buf);
}

Expand Down

0 comments on commit abc7ef5

Please sign in to comment.