1
0
Fork 0
mirror of synced 2024-10-01 09:47:29 +13:00
Rare/rare/components/tabs
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
..
account Fix "Offline" text in account widget 2023-01-08 20:41:02 +01:00
downloads GameWidget: Implement reactive and interactive labels 2023-02-07 13:41:59 +02:00
games IndicatorLineEdit: Run edit callback function asynchronously 2023-02-18 14:37:37 +02:00
settings IndicatorLineEdit: Run edit callback function asynchronously 2023-02-18 14:37:37 +02:00
shop ApiResults: Mirror the way RareCore from refactor_backend handles non asset items 2023-02-07 13:04:33 +02:00
__init__.py MainTabWidget: Use returned indices instead of hard-coding disabled tabs 2023-02-06 09:19:31 +02:00
tab_widgets.py MainTabWidget: Use returned indices instead of hard-coding disabled tabs 2023-02-06 09:19:31 +02:00