mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
Remove useless path button text updates, this is handled elsewhere
This commit is contained in:
parent
f6a19f868a
commit
f9c0ce63b8
1 changed files with 3 additions and 26 deletions
|
@ -130,6 +130,8 @@ PrefsDialog::updateWidgetValue (QWidget * widget, int prefKey)
|
||||||
w->setText (myPrefs.getString (prefKey));
|
w->setText (myPrefs.getString (prefKey));
|
||||||
else if (auto w = qobject_cast<PathButton*> (widget))
|
else if (auto w = qobject_cast<PathButton*> (widget))
|
||||||
w->setPath (myPrefs.getString (prefKey));
|
w->setPath (myPrefs.getString (prefKey));
|
||||||
|
else if (auto w = qobject_cast<FreeSpaceLabel*> (widget))
|
||||||
|
w->setPath (myPrefs.getString (prefKey));
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -490,6 +492,7 @@ PrefsDialog::initDownloadingTab ()
|
||||||
linkWidgetToPref (ui.trashTorrentFileCheck, Prefs::TRASH_ORIGINAL);
|
linkWidgetToPref (ui.trashTorrentFileCheck, Prefs::TRASH_ORIGINAL);
|
||||||
linkWidgetToPref (ui.downloadDirButton, Prefs::DOWNLOAD_DIR);
|
linkWidgetToPref (ui.downloadDirButton, Prefs::DOWNLOAD_DIR);
|
||||||
linkWidgetToPref (ui.downloadDirEdit, Prefs::DOWNLOAD_DIR);
|
linkWidgetToPref (ui.downloadDirEdit, Prefs::DOWNLOAD_DIR);
|
||||||
|
linkWidgetToPref (ui.downloadDirFreeSpaceLabel, Prefs::DOWNLOAD_DIR);
|
||||||
linkWidgetToPref (ui.downloadQueueSizeSpin, Prefs::DOWNLOAD_QUEUE_SIZE);
|
linkWidgetToPref (ui.downloadQueueSizeSpin, Prefs::DOWNLOAD_QUEUE_SIZE);
|
||||||
linkWidgetToPref (ui.queueStalledMinutesSpin, Prefs::QUEUE_STALLED_MINUTES);
|
linkWidgetToPref (ui.queueStalledMinutesSpin, Prefs::QUEUE_STALLED_MINUTES);
|
||||||
linkWidgetToPref (ui.renamePartialFilesCheck, Prefs::RENAME_PARTIAL_FILES);
|
linkWidgetToPref (ui.renamePartialFilesCheck, Prefs::RENAME_PARTIAL_FILES);
|
||||||
|
@ -651,37 +654,11 @@ PrefsDialog::refreshPref (int key)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case Prefs::DIR_WATCH:
|
|
||||||
ui.watchDirButton->setText (QFileInfo (myPrefs.getString (Prefs::DIR_WATCH)).fileName ());
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Prefs::SCRIPT_TORRENT_DONE_FILENAME:
|
|
||||||
{
|
|
||||||
const QString path (myPrefs.getString (key));
|
|
||||||
ui.completionScriptButton->setText (QFileInfo (path).fileName ());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case Prefs::PEER_PORT:
|
case Prefs::PEER_PORT:
|
||||||
ui.peerPortStatusLabel->setText (tr ("Status unknown"));
|
ui.peerPortStatusLabel->setText (tr ("Status unknown"));
|
||||||
ui.testPeerPortButton->setEnabled (true);
|
ui.testPeerPortButton->setEnabled (true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Prefs::DOWNLOAD_DIR:
|
|
||||||
{
|
|
||||||
const QString path (myPrefs.getString (key));
|
|
||||||
ui.downloadDirButton->setText (QFileInfo (path).fileName ());
|
|
||||||
ui.downloadDirFreeSpaceLabel->setPath (path);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case Prefs::INCOMPLETE_DIR:
|
|
||||||
{
|
|
||||||
QString path (myPrefs.getString (key));
|
|
||||||
ui.incompleteDirButton->setText (QFileInfo (path).fileName ());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue