mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-11 04:56:44 +00:00
Correctly persisted update-rate in the ambilight example
This commit is contained in:
1 parent
63ef78f8fc
commit
c786710b65
3 files changed
+9
-5
No files matched your search
@@ -12,8 +12,12 @@ namespace Example_Ambilight_full.TakeAsIs.UI
|
||||
|
||||
public int UpdateRate
|
||||
{
|
||||
get { return (int)Math.Round(1f / CueSDK.UpdateFrequency); }
|
||||
set { CueSDK.UpdateFrequency = 1f / value; }
|
||||
get => (int)Math.Round(1f / CueSDK.UpdateFrequency);
|
||||
set
|
||||
{
|
||||
Settings.UpdateRate = value;
|
||||
CueSDK.UpdateFrequency = 1f / value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user