-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add unload all #7
Conversation
Thanks for your contribution 😃 This repository is a mirror of a KDE repository. This means that developers are not looking at pull requests created in GitHub, so I'm closing this pull request (actually a bot is doing it). |
I think this would make the already long tab context menu even bigger. PS: This is read-only mirror. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are things which I found, if you want to you can send the patch for real review please use Phabricator.
@@ -135,6 +136,9 @@ void TabContextMenu::init() | |||
addAction(tr("Unload Tab"), this, SLOT(unloadTab())); | |||
} | |||
|
|||
addAction(tr("Unload All"), this, SLOT(unloadAllTabsInCurrentWindow())); | |||
addAction(tr("Unload All (include Pinned)"), this, SLOT(unloadAllTabsInCurrentWindowWithPinned())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be after the separator.
The separator separates the actions for CURRENT tab and ALL tabs
Please send the patch via KDE`s Phabricator as the bot told you.
@@ -46,6 +46,7 @@ TabContextMenu::TabContextMenu(int index, BrowserWindow *window, Options options | |||
connect(this, SIGNAL(detachTab(int)), tabWidget, SLOT(detachTab(int))); | |||
connect(this, SIGNAL(loadTab(int)), tabWidget, SLOT(loadTab(int))); | |||
connect(this, SIGNAL(unloadTab(int)), tabWidget, SLOT(unloadTab(int))); | |||
connect(this, SIGNAL(unloadAllTabsInCurrentWindow(int, bool)), tabWidget, SLOT(unloadAllTabsInCurrentWindow(int,bool))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the space after the comma.
connect(this, SIGNAL(unloadAllTabsInCurrentWindow(int, bool)), tabWidget, SLOT(unloadAllTabsInCurrentWindow(int, bool)));
add unload all tabs in current window (include/exclude pinned) in tab context menu of tabwidget