Skip to content
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

Closed
wants to merge 1 commit into from
Closed

add unload all #7

wants to merge 1 commit into from

Conversation

dhamp
Copy link

@dhamp dhamp commented Jan 3, 2020

add unload all tabs in current window (include/exclude pinned) in tab context menu of tabwidget

@tsdgeos
Copy link
Contributor

tsdgeos commented Jan 3, 2020

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).
Please see https://community.kde.org/Infrastructure/Github_Mirror for details on how to contribute to this and other KDE projects.

@tsdgeos tsdgeos closed this Jan 3, 2020
@SGOrava
Copy link
Contributor

SGOrava commented Jan 5, 2020

I think this would make the already long tab context menu even bigger.
This calls for some configuration dialog where use would be able to
rearrange the items in the tab context menu.

PS: This is read-only mirror.

Copy link
Contributor

@SGOrava SGOrava left a 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()));
Copy link
Contributor

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)));
Copy link
Contributor

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)));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants