Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent e8ae69f commit dd5175e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetWindowText(widgets[Widgets::RUNNING], status.c_str());

if (running) {
MessageBox(NULL, "Started monitoring", "Info", MB_OK);
start_monitoring(FOLDER_PATH);
} else {
stop_monitoring();
Expand Down Expand Up @@ -234,7 +235,7 @@ void create_window() {

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

0 comments on commit dd5175e

Please sign in to comment.