mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user