Skip to content

Commit

Permalink
forgot to remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jul 27, 2024
1 parent 4e20442 commit fbea459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GWToolboxdll/Windows/Hotkeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ void HotkeyToggle::Execute()
if (target == Clicker) {
interval = clicker_delay_ms;
}
else if (TIMER_DIFF(last_use) < interval) {
if (TIMER_DIFF(last_use) < interval) {
return;
}
if (processing) {
Expand Down
2 changes: 1 addition & 1 deletion GWToolboxdll/Windows/HotkeysWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void HotkeysWindow::DrawSettingsInternal()
ToolboxWindow::DrawSettingsInternal();
ImGui::Checkbox("Show 'Active' checkbox in header", &TBHotkey::show_active_in_header);
ImGui::Checkbox("Show 'Run' button in header", &TBHotkey::show_run_in_header);
ImGui::SliderInt("Autoclicker delay (ms)", &HotkeyToggle::clicker_delay_ms, 1, 100);
ImGui::SliderInt("Autoclicker delay (ms)", &HotkeyToggle::clicker_delay_ms, 1, 1'000);
}

void HotkeysWindow::LoadSettings(ToolboxIni* ini)
Expand Down

0 comments on commit fbea459

Please sign in to comment.