Skip to content

Commit

Permalink
Fix ambiguity in button display name
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent 825d34f commit fa143c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
start_monitoring(FOLDER_PATH);
}

std::string status = running ? "Running" : "Stopped";
std::string status = running ? "Stop" : "Start";
SetWindowText(widgets[Widgets::RUNNING], status.c_str());
}
break;
Expand Down Expand Up @@ -243,7 +243,7 @@ void create_window() {

HWND running_button = CreateWindow(
"BUTTON",
"Stopped",
"Start",
WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,
10,
10,
Expand Down

0 comments on commit fa143c2

Please sign in to comment.