Skip to content

Commit

Permalink
Renames a method
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Jan 8, 2025
1 parent 31ff22a commit 3f5a21d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ApplicationPreferencesImpl(
}
}

override val gameVariant: GameOptionsVariant
override val gameOptionsVariant: GameOptionsVariant
get() = loadIntoGameVariant()

override fun showFullscreen(): Boolean = preferences.getBoolean("showfullscreen", true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class NewGameViewModel :
applicationPreferences.gridWidth,
applicationPreferences.gridHeigth,
),
applicationPreferences.gameVariant,
applicationPreferences.gameOptionsVariant,
)

override fun onCleared() {
Expand All @@ -110,7 +110,7 @@ class NewGameViewModel :
grid: Grid,
previewStillCalculating: Boolean,
) {
grid.options.numeralSystem = applicationPreferences.gameVariant.numeralSystem
grid.options.numeralSystem = applicationPreferences.gameOptionsVariant.numeralSystem
mutablePreviewGridState.value = GridPreviewState(grid, previewStillCalculating)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class GameLifecycle(
applicationPreferences.gridWidth,
applicationPreferences.gridHeigth,
),
applicationPreferences.gameVariant,
applicationPreferences.gameOptionsVariant,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface ApplicationPreferences {

fun showOperators(): Boolean

val gameVariant: GameOptionsVariant
val gameOptionsVariant: GameOptionsVariant

fun showFullscreen(): Boolean

Expand Down

0 comments on commit 3f5a21d

Please sign in to comment.