mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
fix active tab close
This commit is contained in:
parent
34cf0feb35
commit
d0d9b29285
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ void Main::tab_append()
|
||||||
void Main::tab_close()
|
void Main::tab_close()
|
||||||
{
|
{
|
||||||
tab->close(
|
tab->close(
|
||||||
-1 // active
|
tab->get_current_page() // active
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ void Tab::close_all()
|
||||||
while (0 <= get_current_page())
|
while (0 <= get_current_page())
|
||||||
{
|
{
|
||||||
close(
|
close(
|
||||||
-1 // active
|
-1 // last
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue