Skip to content

Commit

Permalink
Fix Setup to .NET8
Browse files Browse the repository at this point in the history
Fix genPlaylist
  • Loading branch information
MaKrotos committed Sep 27, 2024
1 parent 5f58c49 commit d978479
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
13 changes: 7 additions & 6 deletions Setup/Setup.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions Setup/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private async void button1_Click(object sender, EventArgs e)

button1.Enabled = false;

bool a= appUpdater.IsVersionInstalled(RuntimeInformation.FrameworkDescription);
bool a = appUpdater.IsVersionInstalled(RuntimeInformation.FrameworkDescription);

if (!a)
{
Expand Down Expand Up @@ -76,16 +76,19 @@ private async void button1_Click(object sender, EventArgs e)
}

appUpdater.DownloadProgressChanged += AppUpdater_DownloadProgressChanged;



await appUpdater.DownloadAndOpenFile();



//Close();
}


private void label1_Click(object sender, EventArgs e)
{

}
}
}
2 changes: 1 addition & 1 deletion Setup/Setup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
6 changes: 3 additions & 3 deletions Setup/Setup.resx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
Expand Down Expand Up @@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down Expand Up @@ -120,7 +120,7 @@
<data name="label1.Text" xml:space="preserve">
<value>Этот установщик предназначен для установки приложения VK M.
После его использования, приложение можно будет обновлять или переустанавливать вручную.
Кроме того, VK M поддерживает автоматическое обновление</value>
Кроме того, VK M поддерживает автоматическое обновление.</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Expand Down
2 changes: 1 addition & 1 deletion VK UI3 (Package)/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="FDW.VKM"
Publisher="CN=FDW"
Version="0.2.0.4" />
Version="0.2.0.5" />

<mp:PhoneIdentity PhoneProductId="b7c1f34e-9025-4935-9d7a-7d0a632a368d" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
5 changes: 3 additions & 2 deletions VK UI3/Views/ModalsPages/CreatePlayList.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public CreatePlayList(AudioPlaylist audioPlaylist, bool genByPlayList = false, s
this.Loaded += CreatePlayList_Loaded;
this.audioPlaylist = audioPlaylist;
this.genByPlayList = genByPlayList;
this.genBy = genBy;
this.unicid = unicID;
}
public CreatePlayList(AudioPlaylist audioPlaylist, VkNet.Model.Attachments.Audio audio)
Expand Down Expand Up @@ -170,7 +171,7 @@ private async Task createGenerateAsync()
{
if (iVKGetAudio != null)
{
new GeneratorAlbumVK(iVKGetAudio, name: Title.Text, deepGen: (int)GenValue.Value, description: Description.Text, noDiscover: HideFromSearch.IsOn, CoverPath: CoverPath).GenerateAsync();
new GeneratorAlbumVK(iVKGetAudio, name: Title.Text, deepGen: (int)GenValue.Value, description: Description.Text, noDiscover: HideFromSearch.IsOn, CoverPath: CoverPath, unicId: unicid).GenerateAsync();

}
else
Expand All @@ -186,7 +187,7 @@ private async Task createGenerateAsync()


if (pla != null) {
new GeneratorAlbumVK(track_playlist, name: Title.Text, deepGen: 100, description: Description.Text, noDiscover: HideFromSearch.IsOn, CoverPath: CoverPath).GenerateAsync();
new GeneratorAlbumVK(track_playlist, name: Title.Text, deepGen: 100, description: Description.Text, noDiscover: HideFromSearch.IsOn, CoverPath: CoverPath, unicId: unicid).GenerateAsync();
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions VK UI3/Views/Tasks/Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,17 @@ protected TaskAction(int total, string nameTask, string taskID, string subTextTa
this.total = total;
this.nameTask = nameTask;
this.taskID = taskID;
bool exists = tasks.Any(task => task.taskID == this.taskID);

if (exists)
{
cancellationToken.ThrowIfCancellationRequested();
Cancel();
return;
}
if (!(taskID is null)) {
bool exists = tasks.Any(task => task.taskID == this.taskID);

if (exists)
{
cancellationToken.ThrowIfCancellationRequested();
Cancel();
return;
}
}
var set = SettingsTable.GetSetting("TaskALL");
bool startAuto = set != null;
if (!startAuto)
Expand Down

0 comments on commit d978479

Please sign in to comment.