mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-26 00:13:49 +00:00
Added a notice naming the page when a source opens without it (#1233)
This commit is contained in:
1 parent
e63e70a5cf
commit
deb75c8dd1
18 files changed
+447
-57
No files matched your search
@@ -0,0 +1,20 @@
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
public static class RuntimeInfoResponseExtensions
|
||||
{
|
||||
/// <param name="runtimeInfo">What the runtime tells about itself.</param>
|
||||
extension(RuntimeInfoResponse runtimeInfo)
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether a document can be opened at a page at all.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Never inside a Flatpak: its sandbox lets AI Studio start no program itself, and the desktop
|
||||
/// portal, which opens the document instead, knows no pages, see PageOutcome in
|
||||
/// runtime/src/file_actions.rs. Everywhere else, whether the page arrives depends on the
|
||||
/// program, which the runtime learns only while it opens the document.
|
||||
/// </remarks>
|
||||
/// <value>False inside a Flatpak.</value>
|
||||
public bool CanOpenDocumentsAtPage => runtimeInfo.LinuxPackageType is not LinuxPackageType.FLATPAK;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user