mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:27:24 +01:00
add permission popup ui
This commit is contained in:
parent
2fbee855ae
commit
33535310aa
7 changed files with 230 additions and 18 deletions
|
|
@ -65,6 +65,17 @@ public sealed class UiService : DisposableMediatorSubscriberBase
|
|||
}
|
||||
});
|
||||
|
||||
Mediator.Subscribe<OpenPermissionWindow>(this, (msg) =>
|
||||
{
|
||||
if (!_createdWindows.Exists(p => p is PermissionWindowUI ui
|
||||
&& msg.Pair == ui.Pair))
|
||||
{
|
||||
var window = _uiFactory.CreatePermissionPopupUi(msg.Pair);
|
||||
_createdWindows.Add(window);
|
||||
_windowSystem.AddWindow(window);
|
||||
}
|
||||
});
|
||||
|
||||
Mediator.Subscribe<RemoveWindowMessage>(this, (msg) =>
|
||||
{
|
||||
_windowSystem.RemoveWindow(msg.Window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue