mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:06:31 +00:00
add silent detection - don't send to queue if enable
This commit is contained in:
@@ -5,4 +5,5 @@ public class UIConfig
|
||||
public double LeftPanelWidth { get; set; }
|
||||
public double RightPanelWidth { get; set; }
|
||||
public bool GenerateAnnotatedImage { get; set; }
|
||||
public bool SilentDetection { get; set; }
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ public class AnnotationService : INotificationHandler<AnnotationsDeletedEvent>
|
||||
if (_uiConfig.GenerateAnnotatedImage)
|
||||
await _galleryService.CreateAnnotatedImage(annotation, token);
|
||||
|
||||
if (!fromQueue) //Send to queue only if we're not getting from queue already
|
||||
if (!fromQueue && !_uiConfig.SilentDetection) //Send to queue only if we're not getting from queue already
|
||||
await _producer.SendToInnerQueue(annotation, token);
|
||||
|
||||
await _mediator.Publish(new AnnotationCreatedEvent(annotation), token);
|
||||
|
||||
@@ -147,7 +147,11 @@ public partial class App
|
||||
EventManager.RegisterClassHandler(typeof(UIElement), UIElement.KeyDownEvent, new RoutedEventHandler(GlobalClick));
|
||||
_host.Services.GetRequiredService<MainSuite>().Show();
|
||||
};
|
||||
|
||||
login.Closed += (sender, args) =>
|
||||
{
|
||||
if (!login.MainSuiteOpened)
|
||||
_inferenceClient.Stop();
|
||||
};
|
||||
login.ShowDialog();
|
||||
}
|
||||
|
||||
@@ -246,4 +250,4 @@ public partial class App
|
||||
base.OnExit(e);
|
||||
await _host.StopAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,9 +119,6 @@ public partial class MainSuite
|
||||
if (_openedWindows.Any())
|
||||
return;
|
||||
|
||||
_inferenceClient.Stop();
|
||||
_gpsMatcherClient.Stop();
|
||||
|
||||
Close();
|
||||
};
|
||||
window.Show();
|
||||
@@ -145,6 +142,9 @@ public partial class MainSuite
|
||||
_dbFactory.SaveToDisk();
|
||||
foreach (var window in _openedWindows)
|
||||
window.Value.Close();
|
||||
|
||||
_inferenceClient.Stop();
|
||||
_gpsMatcherClient.Stop();
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"UIConfig": {
|
||||
"LeftPanelWidth": 220.0,
|
||||
"RightPanelWidth": 230.0,
|
||||
"GenerateAnnotatedImage": true
|
||||
"GenerateAnnotatedImage": true,
|
||||
"SilentDetection": true
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@
|
||||
"UIConfig": {
|
||||
"LeftPanelWidth": 170.0,
|
||||
"RightPanelWidth": 120.0,
|
||||
"GenerateAnnotatedImage": true
|
||||
"GenerateAnnotatedImage": true,
|
||||
"SilentDetection": false
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@
|
||||
TextAlignment="Center">
|
||||
Будь ласка перевірте правильність email чи паролю! <LineBreak />
|
||||
Також зауважте, що запуск можливий лише з одного конкретного компьютера, копіювання заборонене! <LineBreak/> <LineBreak/>
|
||||
Для подальшого вирішення проблеми ви моежете зв'язатися з нами: hi@azaion.com
|
||||
Для подальшого вирішення проблеми ви можете зв'язатися з нами: hi@azaion.com
|
||||
<LineBreak /><LineBreak /><LineBreak />
|
||||
Please check your email or password! <LineBreak />
|
||||
The program is restricted to start only from particular hardware, copying is forbidden! <LineBreak/> <LineBreak/>
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
[Setup]
|
||||
AppId={{CCFEC8E2-0FCC-4B03-8EEA-00AF20D265E5}}
|
||||
AppName=Azaion Suite
|
||||
AppVersion=1.4.4
|
||||
AppVersion=1.4.5
|
||||
AppPublisher=Azaion Ukraine
|
||||
DefaultDirName={localappdata}\Azaion\Azaion Suite
|
||||
DefaultGroupName=Azaion Suite
|
||||
OutputDir=..\
|
||||
OutputBaseFilename=AzaionSuite1.4.4
|
||||
OutputBaseFilename=AzaionSuite1.4.5
|
||||
SetupIconFile=..\dist\logo.ico
|
||||
UninstallDisplayName=Azaion Suite
|
||||
UninstallDisplayIcon={app}\Azaion.Suite.exe
|
||||
|
||||
@@ -6,7 +6,6 @@ dotnet build -c Release
|
||||
|
||||
cd Azaion.Suite
|
||||
call postbuild.cmd Release
|
||||
echo %cd%
|
||||
call upload-file %cd%\config.secured.json
|
||||
call upload-file %cd%\config.system.json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user