mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-20 01:30:17 +00:00
impr: SongIdSelector
get separate values
This commit is contained in:
parent
8e3176ddd4
commit
1e6d9e0151
@ -27,7 +27,7 @@ class ChartSelector(Ui_ChartSelector, QWidget):
|
||||
self.ratingClassSelector.valueChanged.connect(self.valueChanged)
|
||||
|
||||
def value(self):
|
||||
songId = self.songIdSelector.value()
|
||||
songId = self.songIdSelector.songId()
|
||||
ratingClass = self.ratingClassSelector.value()
|
||||
|
||||
if songId and isinstance(ratingClass, int):
|
||||
@ -65,7 +65,7 @@ class ChartSelector(Ui_ChartSelector, QWidget):
|
||||
|
||||
def updateRatingClassEnabled(self):
|
||||
ratingClasses = []
|
||||
songId = self.songIdSelector.value()
|
||||
songId = self.songIdSelector.songId()
|
||||
if songId:
|
||||
charts = self.db.get_charts_by_song_id(songId)
|
||||
ratingClasses = [chart.rating_class for chart in charts]
|
||||
|
@ -79,7 +79,10 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
||||
else:
|
||||
return
|
||||
|
||||
def value(self):
|
||||
def packId(self):
|
||||
return self.packComboBox.currentData()
|
||||
|
||||
def songId(self):
|
||||
return self.songIdComboBox.currentData()
|
||||
|
||||
def reset(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user