Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed May 7, 2023
1 parent 273bbd1 commit ac23353
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ val javafxModules = listOf(
)

val artifact = "dev.datlag.burningseries"
val appVersion = "4.6.1"
val appCode = 461
val appVersion = "4.7.0"
val appCode = 470

group = artifact
version = appVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ fun LandscapeToolbar(
}
if (linkedSeries.isNotEmpty()) {
IconButton(onClick = {
throw IllegalArgumentException("Exception on purpose")
// ToDo("show dialog or switch to other series")
}, modifier = Modifier.focusBorder(MaterialTheme.colorScheme.onTertiary).background(
color = if (state.firstVisibleItemIndex >= 1) Color.Transparent else Color.SemiBlack,
shape = Shape.FullRoundedShape
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ object BSUtil {
val season = if (hrefSplit.size >= 2) hrefSplit[1] else null
val language = if (hrefSplit.size >= 3) hrefSplit[2] else null
val fallbackLanguage = if (hrefSplit.size >= 4) hrefSplit[3] else null
val title = getTitle().ifBlank {
hrefSplit[0]
var title = hrefSplit[0].ifBlank {
getTitle()
}
if (title.equals(season, true)) {
title = getTitle()
}
println(href)
println(title)
return Triple(
title,
if (season.isNullOrEmpty()) null else season,
Expand Down

0 comments on commit ac23353

Please sign in to comment.