1
0
Fork 0
mirror of synced 2024-09-29 08:51:43 +13:00
Rare/rare/utils
loathingKernel ecc1bd8d5c IndicatorLineEdit: Run edit callback function asynchronously
Execute the edit callback function in a thread. By executing it in a thread
we don't have to wait for longer validation procedures to finish to
continue updating the UI. This is most notable in the MoveGamePopUp
which is heavy on disk IO.

Because we cannot use special text formatting in a thread, the
indicator messages have been reworked while also becoming extensible.

A dictionary of extended reasons can be specified through the
`IndicatorLineEdit.extend_reasons()` method.

The dictionary has to follow the following format
```
python
{
	MyIndicatorReasons.REASON: self.tr("Reason message")
	MyIndicatorReasons.OTHER_REASON: self.tr("Other reason message")
}
```

In the above example `MyIndicatorReasons` is a subclass of `IndicatorReasons`
which should be specified as follows

```
python
MyIndicatorReasons(IndicatorReasons):
	REASON = auto()
	OTHER_REASON = auto()
```
2023-02-18 14:37:37 +02:00
..
__init__.py lowercase snake case 2021-04-07 22:39:23 +02:00
config_helper.py Fix wrong import from migration 2022-10-26 21:57:04 +02:00
extra_widgets.py IndicatorLineEdit: Run edit callback function asynchronously 2023-02-18 14:37:37 +02:00
json_formatter.py Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
misc.py IndicatorLineEdit: Run edit callback function asynchronously 2023-02-18 14:37:37 +02:00
paths.py Paths: Use common dictionary for suffixes 2023-02-08 16:47:46 +02:00
qt_requests.py Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
rpc.py GlobalSignals: Reorganize signals into groups 2023-02-04 17:38:06 +02:00
singleton.py Unify strings formatting (#158) 2022-02-01 22:29:34 +01:00
steam_grades.py GameInfo: Make widgets react to changes from RareGame's widget.update signal 2023-02-15 16:59:33 +02:00