mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-22 08:23:52 +01:00
Change custom order to live
This commit is contained in:
parent
0681a04607
commit
5e9635a76f
@ -1072,7 +1072,7 @@ A list of channels to display.
|
|||||||
How many channels are visible before the "SHOW MORE" button appears. Set to `-1` to never collapse.
|
How many channels are visible before the "SHOW MORE" button appears. Set to `-1` to never collapse.
|
||||||
|
|
||||||
##### `sort-by`
|
##### `sort-by`
|
||||||
Can be used to specify the order in which the channels are displayed. Possible values are `viewers` and `custom`.
|
Can be used to specify the order in which the channels are displayed. Possible values are `viewers` and `live`.
|
||||||
|
|
||||||
### Twitch top games
|
### Twitch top games
|
||||||
Display a list of games with the most viewers on Twitch.
|
Display a list of games with the most viewers on Twitch.
|
||||||
|
@ -24,7 +24,7 @@ func (widget *TwitchChannels) Initialize() error {
|
|||||||
widget.CollapseAfter = 5
|
widget.CollapseAfter = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
if widget.SortBy != "viewers" && widget.SortBy != "custom" {
|
if widget.SortBy != "viewers" && widget.SortBy != "live" {
|
||||||
widget.SortBy = "viewers"
|
widget.SortBy = "viewers"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ func (widget *TwitchChannels) Update(ctx context.Context) {
|
|||||||
|
|
||||||
if widget.SortBy == "viewers" {
|
if widget.SortBy == "viewers" {
|
||||||
channels.SortByViewers()
|
channels.SortByViewers()
|
||||||
} else if widget.SortBy == "custom" {
|
} else if widget.SortBy == "live" {
|
||||||
channels.SortByLive()
|
channels.SortByLive()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user