Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement News Panel and QR Code overview #10

Merged
merged 18 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore SocMed Button click with empty link
neon-nyan committed Jun 19, 2022
commit 3c44acd252d9ae757b1a583dbccd7ed11d92212b
6 changes: 5 additions & 1 deletion CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs
Original file line number Diff line number Diff line change
@@ -136,7 +136,10 @@ private async Task HideImageCarousel(bool hide)
});
}

private void OpenSocMedLink(object sender, RoutedEventArgs e) =>
private void OpenSocMedLink(object sender, RoutedEventArgs e)
{
if (string.IsNullOrEmpty(((Button)sender).Tag.ToString())) return;

new Process()
{
StartInfo = new ProcessStartInfo()
@@ -145,6 +148,7 @@ private void OpenSocMedLink(object sender, RoutedEventArgs e) =>
FileName = ((Button)sender).Tag.ToString()
}
}.Start();
}

private void OpenImageLinkFromTag(object sender, PointerRoutedEventArgs e) =>
new Process()