Merge pull request #848 from thatdevsherry/fix/two-clicks-to-close-preview
fix: close selected preview on single click
This commit is contained in:
commit
0ab6e49396
1 changed files with 3 additions and 1 deletions
|
|
@ -3097,7 +3097,9 @@ impl Application for App {
|
|||
}
|
||||
Message::ToggleContextPage(context_page) => {
|
||||
//TODO: ensure context menus are closed
|
||||
if self.context_page == context_page {
|
||||
if self.context_page == context_page
|
||||
|| matches!(self.context_page, ContextPage::Preview(_, _))
|
||||
{
|
||||
self.set_show_context(!self.core.window.show_context);
|
||||
} else {
|
||||
self.set_show_context(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue