mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix: tab splitter visible issue
This commit is contained in:
parent
4610f702b3
commit
b0c14ab3e4
1 changed files with 14 additions and 2 deletions
|
@ -23,9 +23,21 @@ namespace SourceGit.Converters
|
|||
return false;
|
||||
|
||||
var selected = array[1] as ViewModels.LauncherPage;
|
||||
var collections = array[2] as AvaloniaList<ViewModels.LauncherPage>;
|
||||
if (selected == null)
|
||||
return true;
|
||||
|
||||
return selected != null && collections != null && (self == selected || collections.IndexOf(self) + 1 == collections.IndexOf(selected));
|
||||
var collections = array[2] as AvaloniaList<ViewModels.LauncherPage>;
|
||||
if (collections == null)
|
||||
return true;
|
||||
|
||||
if (self == selected)
|
||||
return false;
|
||||
|
||||
var selfIdx = collections.IndexOf(self);
|
||||
if (selfIdx == collections.Count - 1)
|
||||
return true;
|
||||
|
||||
return collections[selfIdx + 1] != selected;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue