Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Jun 11, 2024
2 parents ed8f350 + 85710ad commit ee8143e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Aria2Fast/View/AddSubscriptionView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ private void Page_DataContextChanged(object sender, DependencyPropertyChangedEve
UrlTextBox.Text = obj.Item1; //订阅地址
_customNamePath = obj.Item2; //指定订阅存储名称
_anime = obj.Item3;
_subscriptionModel = obj.Item4;
if (!string.IsNullOrEmpty(obj.Item4.Url))
{
_subscriptionModel = obj.Item4;
}



TextBoxRssPath.Text = _customNamePath; //
Expand Down
3 changes: 2 additions & 1 deletion Aria2Fast/View/MikanAnimeRssView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Aria2Fast.Service.Model;
using Aria2Fast.Service.Model.SubscriptionModel;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -37,7 +38,7 @@ private void Border_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
//MainWindow.Instance.RootNavigation.NavigateWithHierarchy(typeof(MikanAnimeRssView), animeItem);
//弹出订阅页面?
//MainWindow.Instance.RootNavigation.IsBackButtonVisible = Wpf.Ui.Controls.NavigationViewBackButtonVisible.Visible;
MainWindow.Instance.RootNavigation.Navigate(typeof(AddSubscriptionView), (mikanAnimeRss.Url, mikanAnime.Name, mikanAnime));
MainWindow.Instance.RootNavigation.Navigate(typeof(AddSubscriptionView), (mikanAnimeRss.Url, mikanAnime.Name, mikanAnime, new SubscriptionModel()));
}
}
}

0 comments on commit ee8143e

Please sign in to comment.