Interfaccia, parte 2: Attività, Impostazioni, collegamento, Importa, doppioni, primo avvio ed errori di configurazione
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
90 files changed
+7825
-49
No files matched your search
@@ -16,6 +16,9 @@ public enum DemoScene
|
||||
|
||||
/// <summary>«scollegato»: no Instagram session yet.</summary>
|
||||
Disconnected,
|
||||
|
||||
/// <summary>«errore»: a configuration problem (missing password): the interface shows only the problem page.</summary>
|
||||
Error,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -33,7 +36,7 @@ public static class DemoRequest
|
||||
private const string SceneItem = "febe.demo.scena";
|
||||
private const string EditionItem = "febe.demo.veste";
|
||||
|
||||
public static IReadOnlyList<string> SceneNames { get; } = ["normale", "sessione", "fermo", "scollegato"];
|
||||
public static IReadOnlyList<string> SceneNames { get; } = ["normale", "sessione", "fermo", "scollegato", "errore"];
|
||||
|
||||
public static DemoScene? ParseScene(string? text) => text?.Trim().ToLowerInvariant() switch
|
||||
{
|
||||
@@ -41,6 +44,7 @@ public static class DemoRequest
|
||||
"sessione" => DemoScene.Session,
|
||||
"fermo" => DemoScene.Stopped,
|
||||
"scollegato" => DemoScene.Disconnected,
|
||||
"errore" => DemoScene.Error,
|
||||
_ => null,
|
||||
};
|
||||
|
||||
@@ -49,6 +53,7 @@ public static class DemoRequest
|
||||
DemoScene.Session => "sessione",
|
||||
DemoScene.Stopped => "fermo",
|
||||
DemoScene.Disconnected => "scollegato",
|
||||
DemoScene.Error => "errore",
|
||||
_ => "normale",
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user