diff --git a/checks/pages.cs b/checks/pages.cs
index 37737f1..a33b7e7 100644
--- a/checks/pages.cs
+++ b/checks/pages.cs
@@ -242,7 +242,7 @@ PageEntry E(string name, string project, string agent, string? session, int crea
var lib = Path.Combine(dir, "lib");
Directory.CreateDirectory(lib);
File.WriteAllText(Path.Combine(lib, "clayo-page.css"), ".a { color: red } /* $1 */");
- File.WriteAllText(Path.Combine(lib, "clayo-page.js"), "var page = '$0 ';");
+ File.WriteAllText(Path.Combine(lib, "clayo-page.js"), "var page = '$0 '; var c = '
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Clayo/Settings/SettingsPane.xaml.cs b/src/Clayo/Settings/SettingsPane.xaml.cs
index 7863c16..1f2bd2c 100644
--- a/src/Clayo/Settings/SettingsPane.xaml.cs
+++ b/src/Clayo/Settings/SettingsPane.xaml.cs
@@ -84,6 +84,7 @@ public void Refresh(ClayoSettings settings, bool shotKeyTaken = false, Version?
ShotOfferSwitch.IsChecked = settings.ScreenshotOffer;
ShowShots(shotKeyTaken);
Choose(PageThemeCards, settings.PageThemeId);
+ ShowGitHub();
UpdateCheckSwitch.IsChecked = settings.UpdateCheck;
UpdateCheckState.Text = settings.UpdateCheck ? "On" : "Off";
ShowUpdate(newer);
@@ -263,6 +264,26 @@ private void WhatsNew_Click(object sender, RoutedEventArgs e) =>
private void Update_Click(object sender, RoutedEventArgs e) => UpdateRequested?.Invoke();
+ // Which GitHub login public links use (P7). Forgetting it asks again before the next link;
+ // links already made keep working.
+ private void ShowGitHub()
+ {
+ var login = new PageShares().Login;
+ GitHubState.Text = login switch
+ {
+ "gh" => "Public links use your GitHub CLI (gh) login. Forget it and Clayo asks again before the next link.",
+ "git" => "Public links use Git's saved GitHub login. Forget it and Clayo asks again before the next link.",
+ _ => "Not in use. Clayo asks before using your gh or Git login for a page's public link."
+ };
+ ForgetGitHub.Visibility = login is null ? Visibility.Collapsed : Visibility.Visible;
+ }
+
+ private void ForgetGitHub_Click(object sender, RoutedEventArgs e)
+ {
+ new PageShares().Login = null;
+ ShowGitHub();
+ }
+
// A click anywhere on a row whose Tag is its switch flips the switch, as a click on a
// label does, and runs the switch's own Click. A click on the switch itself is the
// switch's own and must not count twice.
diff --git a/src/Clayo/Terminal/TerminalPane.xaml.cs b/src/Clayo/Terminal/TerminalPane.xaml.cs
index 1e4fd2f..f927165 100644
--- a/src/Clayo/Terminal/TerminalPane.xaml.cs
+++ b/src/Clayo/Terminal/TerminalPane.xaml.cs
@@ -764,13 +764,11 @@ private void ShowExportMenu(string page)
menu.IsOpen = true;
}
- /// Share's choices, where the mouse is. A public link comes with P7b.
+ /// Share's choices (ShareFlow), where the mouse is.
private void ShowShareMenu(string page)
{
var menu = new ContextMenu { Placement = System.Windows.Controls.Primitives.PlacementMode.MousePoint };
- var copy = new MenuItem { Header = "Save a copy…" };
- copy.Click += async (_, _) => await SaveCopy(Window.GetWindow(this), page);
- menu.Items.Add(copy);
+ foreach (var item in ShareFlow.Items(Window.GetWindow(this), page)) menu.Items.Add(item);
menu.IsOpen = true;
}