Restore default drag behavior in Torrent Content widget

Multi-selection for default LMB action, as before 5.1 update.
Adds option to select grab as the default behavior, for users who don't have the Alt key available.
Holding the Alt key toggles between grab/multi-selection.

PR #23180.
Closes #22686.
This commit is contained in:
nn
2025-09-28 17:58:46 +00:00
committed by GitHub
parent 222d265eec
commit 42786b2afc
7 changed files with 77 additions and 2 deletions

View File

@@ -372,6 +372,19 @@ void Preferences::setToolbarDisplayed(const bool displayed)
setValue(u"Preferences/General/ToolbarDisplayed"_s, displayed);
}
bool Preferences::isTorrentContentDragEnabled() const
{
return value(u"Preferences/General/TorrentContentDragEnabled"_s, false);
}
void Preferences::setTorrentContentDragEnabled(const bool enabled)
{
if (enabled == isTorrentContentDragEnabled())
return;
setValue(u"Preferences/General/TorrentContentDragEnabled"_s, enabled);
}
bool Preferences::isStatusbarDisplayed() const
{
return value(u"Preferences/General/StatusbarDisplayed"_s, true);