From bdb2ac294e12459db382bed932d1913eb9e766a8 Mon Sep 17 00:00:00 2001 From: pepper-jelly <45047877+pepper-jelly@users.noreply.github.com> Date: Wed, 31 Jul 2024 23:44:15 +0300 Subject: [PATCH] fix: Auto Reset Cycle After #1002 PR: https://github.com/AntiMicroX/antimicrox/pull/1013 --- src/gui/advancebuttondialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/advancebuttondialog.cpp b/src/gui/advancebuttondialog.cpp index c75eef9f4..d8e26a314 100644 --- a/src/gui/advancebuttondialog.cpp +++ b/src/gui/advancebuttondialog.cpp @@ -1284,7 +1284,7 @@ void AdvanceButtonDialog::checkCycleResetWidgetStatus(bool enabled) void AdvanceButtonDialog::setButtonCycleResetInterval(double value) { - int milliseconds = (value * 1000) + (fmod(value, 1.0) * 1000); + int milliseconds = value * 1000; m_button->setCycleResetTime(milliseconds); }