Skip to content

Commit 7c2b575

Browse files
committed
src v1.6.0.4
- fixed customization not working with video wallpapers.
1 parent 942a9ca commit 7c2b575

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ Just drag & drop files, webpages to set as wallpaper..
109109

110110
**_I'm not officially affiliated with Unity technologies, godot, shadertoy;_**
111111
## Download
112-
##### Latest version: v1.6.0.2 (Windows 10 1903 or above)[What's new?](https://github.com/rocksdanister/lively/releases/tag/v1.6.0.2)
112+
##### Latest version: v1.6.0.4 (Windows 10 1903 or above)[What's new?](https://github.com/rocksdanister/lively/releases/tag/v1.6.0.4)
113113
- [`Installer`][direct-full-win32]
114114

115-
SHA256: 112f8c2587d97e57096705336ace649fe3e12e0f25b010bcc3f625a072fb9420
115+
SHA256: 706f9e7176e1db242b79583aeeedcd3bad199e7d05da29775a678891601c0238
116116

117-
[direct-full-win32]: https://github.com/rocksdanister/lively/releases/download/v1.6.0.2/lively_setup_x86_full_v1602.exe
117+
[direct-full-win32]: https://github.com/rocksdanister/lively/releases/download/v1.6.0.4/lively_setup_x86_full_v1604.exe
118118

119119
Installer will give Smartscreen warning, [discussion.](https://github.com/rocksdanister/lively/issues/9)
120120

src/livelywpf/livelywpf/Cef/LivelyProperties/Page/LivelyPropertiesView.xaml.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ private void Slider_ValueChanged(object sender, Windows.UI.Xaml.Controls.Primiti
320320
try
321321
{
322322
var item = (Windows.UI.Xaml.Controls.Slider)sender;
323-
324-
WallpaperSendMsg("lively:customise slider " + item.Name + " " + JsonConvert.SerializeObject(item.Value));
323+
WallpaperSendMsg("lively:customise slider " + item.Name + " " + ((item.StepFrequency % 1) != 0 ? JsonConvert.SerializeObject(item.Value) : JsonConvert.SerializeObject(Convert.ToInt32(item.Value))));
325324
livelyPropertyCopyData[item.Name]["value"] = item.Value;
326325
UpdatePropertyFile();
327326
}

src/livelywpf/livelywpf/Core/Wallpapers/VideoMpvPlayer.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Diagnostics;
7+
using System.Globalization;
78
using System.IO;
89
using System.Text;
910
using System.Threading;
@@ -331,15 +332,15 @@ private string GetLivelyProperty(string uiElement, string objectName, string msg
331332
string result = null;
332333
if (uiElement.Equals("dropdown", StringComparison.OrdinalIgnoreCase))
333334
{
334-
if (int.TryParse(msg, out int value))
335+
if (int.TryParse(msg, NumberStyles.Any, CultureInfo.InvariantCulture, out int value))
335336
{
336337
//value string in items array is passed instead of index like in cef livelyproperties.
337338
result = GetMpvJsonPropertyString("command", "set_property", objectName, (string)livelyPropertiesData[objectName]["items"][value]);
338339
}
339340
}
340341
else if (uiElement.Equals("slider", StringComparison.OrdinalIgnoreCase))
341342
{
342-
if (double.TryParse(msg, out double value))
343+
if (double.TryParse(msg, NumberStyles.Any, CultureInfo.InvariantCulture, out double value))
343344
{
344345
result = GetMpvJsonPropertyString("command", "set_property", objectName, msg);
345346
}

src/livelywpf/livelywpf/livelywpf.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<StartupObject>livelywpf.Program</StartupObject>
1111
<ApplicationIcon>appicon.ico</ApplicationIcon>
1212
<Version>1.0.0</Version>
13-
<AssemblyVersion>1.6.0.2</AssemblyVersion>
13+
<AssemblyVersion>1.6.0.4</AssemblyVersion>
1414
</PropertyGroup>
1515

1616
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">

0 commit comments

Comments
 (0)