Skip to content

Commit 7f526b7

Browse files
committed
[v0.9.547] Optimized "Export Language" button for windows.
1 parent 51947e4 commit 7f526b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const char* get_notes_manifest_path();
5555
#define TRACKER_TITLE "Advancely"
5656

5757
// This is the version that gets compared with the latest release tag on GitHub
58-
#define ADVANCELY_VERSION "v0.9.546" // vMAJOR.MINOR.PATCH // Update this always, SAME FORMAT ON RELEASE TAG!
58+
#define ADVANCELY_VERSION "v0.9.547" // vMAJOR.MINOR.PATCH // Update this always, SAME FORMAT ON RELEASE TAG!
5959
#define ADVANCELY_ICON_PATH "/gui/Advancely_Logo_NoText.png" // Starting from /gui folder
6060
#define ADVANCELY_LOGO_PATH "/gui/Advancely_Logo.png" // Starting from /gui folder
6161
#define ADVANCELY_LOGO_SIZE 512.0f // Logo size on startup message window or update successful window

source/temp_creator_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,8 @@ void handle_export_language(const char *version, const char *category, const cha
12401240
#ifdef _WIN32
12411241
char command[MAX_PATH_LENGTH + 64];
12421242
path_to_windows_native(lang_path);
1243-
snprintf(command, sizeof(command), "explorer /select,\"%s\"", lang_path);
1244-
system(command);
1243+
snprintf(command, sizeof(command), "/select,\"%s\"", lang_path);
1244+
ShellExecuteA(nullptr, "open", "explorer", command, nullptr, SW_SHOW);
12451245
#else // macOS and Linux
12461246
pid_t pid = fork();
12471247
if (pid == 0) { // Child process

0 commit comments

Comments
 (0)