Update x gestione appData...
This commit is contained in:
@@ -34,6 +34,11 @@ namespace EgwControlCenter.App
|
||||
private bool forceClose = false;
|
||||
private bool showReduced = false;
|
||||
|
||||
/// <summary>
|
||||
/// Periodo di blocco invio nuove notifiche se ci sono + update...
|
||||
/// </summary>
|
||||
private int VetoNewNotifySec = 15;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
@@ -44,6 +49,11 @@ namespace EgwControlCenter.App
|
||||
|
||||
private System.Reflection.AssemblyName CurrAssembly { get; set; } = new System.Reflection.AssemblyName();
|
||||
|
||||
/// <summary>
|
||||
/// Ultima visualizzazione messaggio...
|
||||
/// </summary>
|
||||
private DateTime lastMsqShown { get; set; } = DateTime.MinValue;
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
@@ -145,10 +155,6 @@ namespace EgwControlCenter.App
|
||||
blazorWebView1.RootComponents.Add<MainBlazor>("#app");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Periodo di blocco invio nuove notifiche se ci sono + update...
|
||||
/// </summary>
|
||||
private int VetoNewNotifySec = 10;
|
||||
/// <summary>
|
||||
/// Verifica se ci siano update da mostrare come notifica in tray
|
||||
/// </summary>
|
||||
@@ -171,11 +177,6 @@ namespace EgwControlCenter.App
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ultima visualizzazione messaggio...
|
||||
/// </summary>
|
||||
private DateTime lastMsqShown { get; set; } = DateTime.MinValue;
|
||||
|
||||
private void NotifyIcon1_BalloonTipClicked(object? sender, EventArgs e)
|
||||
{
|
||||
DoDisplay();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>1.0.2409.2410</Version>
|
||||
<Version>1.0.2409.2411</Version>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Remove="compilerconfig.json" />
|
||||
|
||||
@@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<ApplicationRevision>2410</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.2409.2410</ApplicationVersion>
|
||||
<ApplicationRevision>2411</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.2409.2411</ApplicationVersion>
|
||||
<BootstrapperEnabled>True</BootstrapperEnabled>
|
||||
<Configuration>Release</Configuration>
|
||||
<CreateWebPageOnPublish>True</CreateWebPageOnPublish>
|
||||
|
||||
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<History>True|2024-09-24T08:19:14.6518641Z||;</History>
|
||||
<History>True|2024-09-24T09:30:39.4755650Z||;True|2024-09-24T10:19:14.6518641+02:00||;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -20,7 +20,9 @@ namespace EgwControlCenter.Core
|
||||
string startDir = Path.GetDirectoryName(assembly.Location)!;
|
||||
ConfDir = startDir;
|
||||
//DataDir = Environment.GetEnvironmentVariable("ClickOnce_DataDirectory") ?? startDir;
|
||||
DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),"EgalWare", "AppControlCenter");
|
||||
string appData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)?? "C:\\ProgramData\\";
|
||||
DataDir = Path.Combine(appData,"EgalWare", "AppControlCenter");
|
||||
Log.Trace($"appData: {appData} | EnvData: {Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}");
|
||||
// verifico esistenza directory...
|
||||
Directory.CreateDirectory(ConfDir);
|
||||
Directory.CreateDirectory(DataDir);
|
||||
|
||||
Reference in New Issue
Block a user