Skip to content

Commit

Permalink
Compile issues & tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Feb 14, 2025
1 parent a81eab2 commit 23d97c9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Framework/Framework/Controls/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Timer : DotvvmControl
[MarkupOptions(AllowHardCodedValue = false, Required = true)]
public ICommandBinding Command
{
get { return (ICommandBinding)GetValue(CommandProperty); }
get { return (ICommandBinding)GetValue(CommandProperty)!; }
set { SetValue(CommandProperty, value); }
}
public static readonly DotvvmProperty CommandProperty
Expand All @@ -30,7 +30,7 @@ public static readonly DotvvmProperty CommandProperty
[MarkupOptions(AllowBinding = false)]
public int Interval
{
get { return (int)GetValue(IntervalProperty); }
get { return (int)GetValue(IntervalProperty)!; }
set { SetValue(IntervalProperty, value); }
}
public static readonly DotvvmProperty IntervalProperty
Expand All @@ -41,7 +41,7 @@ public static readonly DotvvmProperty IntervalProperty
/// </summary>
public bool Enabled
{
get { return (bool)GetValue(EnabledProperty); }
get { return (bool)GetValue(EnabledProperty)!; }
set { SetValue(EnabledProperty, value); }
}
public static readonly DotvvmProperty EnabledProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,22 @@
"onlyHardcoded": true
}
},
"DotVVM.Framework.Controls.Timer": {
"Command": {
"type": "DotVVM.Framework.Binding.Expressions.ICommandBinding, DotVVM.Framework",
"required": true,
"onlyBindings": true
},
"Enabled": {
"type": "System.Boolean",
"defaultValue": true
},
"Interval": {
"type": "System.Int32",
"defaultValue": 30000,
"onlyHardcoded": true
}
},
"DotVVM.Framework.Controls.UITests": {
"GenerateStub": {
"type": "System.Boolean",
Expand Down Expand Up @@ -2327,6 +2343,9 @@
"baseType": "DotVVM.Framework.Controls.HtmlGenericControl, DotVVM.Framework",
"withoutContent": true
},
"DotVVM.Framework.Controls.Timer": {
"baseType": "DotVVM.Framework.Controls.DotvvmControl, DotVVM.Framework"
},
"DotVVM.Framework.Controls.UpdateProgress": {
"baseType": "DotVVM.Framework.Controls.HtmlGenericControl, DotVVM.Framework"
},
Expand Down

0 comments on commit 23d97c9

Please sign in to comment.