mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 22:03:40 -06:00
TabBar: More minor changes. Sorry
git-svn-id: svn://ultimatepp.org/upp/trunk@2564 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
32a8dd18d4
commit
2ac1591801
1 changed files with 3 additions and 3 deletions
|
|
@ -358,7 +358,7 @@ int TabBar::GetNextId()
|
|||
|
||||
void TabBar::ContextMenu(Bar& bar)
|
||||
{
|
||||
if (highlight >= 0) {
|
||||
if (highlight >= 0 && crosses) {
|
||||
bar.Add(tabs.GetCount() > mintabcount, t_("Close"), THISBACK1(Close, highlight));
|
||||
bar.Separator();
|
||||
}
|
||||
|
|
@ -374,12 +374,12 @@ void TabBar::ContextMenu(Bar& bar)
|
|||
bar.Separator();
|
||||
}
|
||||
bool sep = true;
|
||||
if (GetCursor() >= 0) {
|
||||
if (GetCursor() >= 0 && crosses) {
|
||||
bar.Separator();
|
||||
sep = false;
|
||||
bar.Add(t_("Close others"), THISBACK1(CloseAll, GetCursor()));
|
||||
}
|
||||
if (mintabcount <= 0) {
|
||||
if (mintabcount <= 0 && crosses) {
|
||||
if (sep) bar.Separator();
|
||||
bar.Add(t_("Close all"), THISBACK1(CloseAll, -1));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue