mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 00:56:00 -05:00
Prevent accidental duration changes while scrolling through settings
This was especially problematic with the "cooldown" option of the "Match behavior" settings on the General tab as accidental changes here could lead to macros not being executed unexpectedly, which is very hard to diagnose without inspecting logs.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "duration-control.hpp"
|
||||
#include "utility.hpp"
|
||||
#include "mouse-wheel-guard.hpp"
|
||||
#include "obs-module.h"
|
||||
#include "utility.hpp"
|
||||
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
@@ -125,6 +126,7 @@ DurationSelection::DurationSelection(QWidget *parent, bool showUnitSelection,
|
||||
{
|
||||
_duration->setMinimum(minValue);
|
||||
_duration->setMaximum(86400); // 24 hours
|
||||
PreventMouseWheelAdjustWithoutFocus(_duration);
|
||||
|
||||
populateUnits(_unitSelection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user