mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
feat: add dynamic default headers in search tab
This commit is contained in:
@@ -693,7 +693,12 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
headers = tracker_mod.HEADERS
|
||||
|
||||
if not headers:
|
||||
headers = ["Post Title", "Author", "Seeders", "Leechers"]
|
||||
if state.currenttracker == "rutracker":
|
||||
headers = ["Post Title", "Author", "Seeders", "Leechers"]
|
||||
elif state.currenttracker == "steamrip":
|
||||
headers = ["Game"]
|
||||
else:
|
||||
headers = ["Post Title", "Author"] # i know this makes it less "modular", but its qol
|
||||
|
||||
table.setRowCount(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user