Skip to content

Commit

Permalink
src v1.6.0.4
Browse files Browse the repository at this point in the history
- fixed customization not working with video wallpapers.
  • Loading branch information
rocksdanister committed Jun 4, 2021
1 parent 942a9ca commit 7c2b575
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ Just drag & drop files, webpages to set as wallpaper..

**_I'm not officially affiliated with Unity technologies, godot, shadertoy;_**
## Download
##### 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)
##### 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)
- [`Installer`][direct-full-win32]

SHA256: 112f8c2587d97e57096705336ace649fe3e12e0f25b010bcc3f625a072fb9420
SHA256: 706f9e7176e1db242b79583aeeedcd3bad199e7d05da29775a678891601c0238

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ private void Slider_ValueChanged(object sender, Windows.UI.Xaml.Controls.Primiti
try
{
var item = (Windows.UI.Xaml.Controls.Slider)sender;

WallpaperSendMsg("lively:customise slider " + item.Name + " " + JsonConvert.SerializeObject(item.Value));
WallpaperSendMsg("lively:customise slider " + item.Name + " " + ((item.StepFrequency % 1) != 0 ? JsonConvert.SerializeObject(item.Value) : JsonConvert.SerializeObject(Convert.ToInt32(item.Value))));
livelyPropertyCopyData[item.Name]["value"] = item.Value;
UpdatePropertyFile();
}
Expand Down
5 changes: 3 additions & 2 deletions src/livelywpf/livelywpf/Core/Wallpapers/VideoMpvPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -331,15 +332,15 @@ private string GetLivelyProperty(string uiElement, string objectName, string msg
string result = null;
if (uiElement.Equals("dropdown", StringComparison.OrdinalIgnoreCase))
{
if (int.TryParse(msg, out int value))
if (int.TryParse(msg, NumberStyles.Any, CultureInfo.InvariantCulture, out int value))
{
//value string in items array is passed instead of index like in cef livelyproperties.
result = GetMpvJsonPropertyString("command", "set_property", objectName, (string)livelyPropertiesData[objectName]["items"][value]);
}
}
else if (uiElement.Equals("slider", StringComparison.OrdinalIgnoreCase))
{
if (double.TryParse(msg, out double value))
if (double.TryParse(msg, NumberStyles.Any, CultureInfo.InvariantCulture, out double value))
{
result = GetMpvJsonPropertyString("command", "set_property", objectName, msg);
}
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/livelywpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<StartupObject>livelywpf.Program</StartupObject>
<ApplicationIcon>appicon.ico</ApplicationIcon>
<Version>1.0.0</Version>
<AssemblyVersion>1.6.0.2</AssemblyVersion>
<AssemblyVersion>1.6.0.4</AssemblyVersion>
</PropertyGroup>

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

0 comments on commit 7c2b575

Please sign in to comment.