Skip to content
Open
Changes from all commits
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
11 changes: 9 additions & 2 deletions QuickLook/ViewerWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2017-2026 QL-Win Contributors
// Copyright © 2017-2026 QL-Win Contributors
//
// This file is part of QuickLook program.
//
Expand Down Expand Up @@ -134,7 +134,14 @@ internal ViewerWindow()
WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized;

buttonShare.Click += (_, _) => ShareHelper.Share(_path, this);
buttonOpenWith.Click += (_, _) => ShareHelper.Share(_path, this, true);
buttonOpenWith.Click += (_, _) =>
{
ShareHelper.Share(_path, this, true);
if (Pinned)
Close();
else
ViewWindowManager.GetInstance().ClosePreview();
};

buttonReload.Visibility = SettingHelper.Get("ShowReload", false) ? Visibility.Visible : Visibility.Collapsed;

Expand Down