mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
refactor: rewrite Launcher
* move main tabbar to a standalone control * simpfy notification
This commit is contained in:
parent
1ce0d0f7bf
commit
e330862ec9
8 changed files with 406 additions and 349 deletions
|
@ -24,11 +24,11 @@ namespace SourceGit.ViewModels
|
|||
set => SetProperty(ref _isTabSplitterVisible, value);
|
||||
}
|
||||
|
||||
public AvaloniaList<Models.Notification> Notifications
|
||||
public AvaloniaList<Notification> Notifications
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = new AvaloniaList<Models.Notification>();
|
||||
} = new AvaloniaList<Notification>();
|
||||
|
||||
public LauncherPage()
|
||||
{
|
||||
|
@ -53,12 +53,6 @@ namespace SourceGit.ViewModels
|
|||
App.CopyText(_node.Id);
|
||||
}
|
||||
|
||||
public void DismissNotification(object param)
|
||||
{
|
||||
if (param is Models.Notification notice)
|
||||
Notifications.Remove(notice);
|
||||
}
|
||||
|
||||
private RepositoryNode _node = null;
|
||||
private object _data = null;
|
||||
private bool _isTabSplitterVisible = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue