fixup! SaveSettings (+androidMain)
This commit is contained in:
parent
57cfba561d
commit
176c5eabec
2 changed files with 4 additions and 4 deletions
|
|
@ -9,6 +9,8 @@ actual class SaveSettings actual constructor() {
|
|||
actual fun loadLastUsedDir(): String = settings.getString("last_dir", "/")
|
||||
actual fun saveLastUsedDir(lastDir: String) { settings["last_dir"] = lastDir }
|
||||
|
||||
actual fun saveWindowBounds(width: Int, height: Int, x: Int, y: Int) {}
|
||||
actual fun loadWindowBounds(): List<Int> = listOf(0, 0, 0, 0)
|
||||
actual fun saveWindowState(state: WindowState) {}
|
||||
actual fun loadWindowState(): WindowState {
|
||||
return WindowState(0,0,0,0)
|
||||
}
|
||||
}
|
||||
|
|
@ -4,9 +4,7 @@ import com.russhwolf.settings.Settings
|
|||
import com.russhwolf.settings.set
|
||||
import androidx.compose.ui.unit.DpSize
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.WindowPlacement
|
||||
import androidx.compose.ui.window.WindowState
|
||||
import androidx.compose.ui.window.WindowPosition
|
||||
|
||||
expect class SaveSettings() {
|
||||
val settings: Settings
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue