mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-19 09:10:18 +00:00
Compare commits
3 Commits
55ef2ba3bb
...
dd647d6963
Author | SHA1 | Date | |
---|---|---|---|
dd647d6963 | |||
7de2eda517 | |||
d918032b9c |
13
index.py
13
index.py
@ -23,6 +23,19 @@ rootLoggerFormatter = logging.Formatter(
|
||||
)
|
||||
|
||||
|
||||
def handle_exception(exc_type, exc_value, exc_traceback):
|
||||
if issubclass(exc_type, KeyboardInterrupt):
|
||||
sys.__excepthook__(exc_type, exc_value, exc_traceback)
|
||||
return
|
||||
|
||||
rootLogger.critical(
|
||||
"Uncaught exception", exc_info=(exc_type, exc_value, exc_traceback)
|
||||
)
|
||||
|
||||
|
||||
sys.excepthook = handle_exception
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
QCoreApplication.setApplicationName("Arcaea Offline")
|
||||
|
||||
|
@ -131,7 +131,7 @@ class DbScoreTableModel(DbTableModel):
|
||||
return False
|
||||
|
||||
if index.column() == 2 and isinstance(value, Score) and role == self.ScoreRole:
|
||||
self._db.update_score(self.__items[index.row()][self.IdRole], value)
|
||||
self._db.update_score(value)
|
||||
self.syncDb()
|
||||
return True
|
||||
|
||||
|
@ -302,7 +302,7 @@ class ScoreEditor(Ui_ScoreEditor, QWidget):
|
||||
|
||||
if score.score is None:
|
||||
flags |= ScoreValidateResult.ScoreIncomplete
|
||||
elif score.pure is None or score.far is None:
|
||||
elif score.pure is None or score.far is None or score.lost is None:
|
||||
flags |= ScoreValidateResult.ScoreIncompleteForValidate
|
||||
elif self.__chart.notes is not None:
|
||||
score_range = calculate_score_range(
|
||||
|
Loading…
x
Reference in New Issue
Block a user