Last.fm: parse interval on need
This commit is contained in:
parent
9964b31626
commit
6924bea181
3 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ export default function Settings() {
|
|||
<FormDivider />
|
||||
<FormInput
|
||||
value={settings.timeInterval}
|
||||
onChangeText={(value: string) => settings.timeInterval = Number(value)}
|
||||
onChangeText={(value: string) => settings.timeInterval = value}
|
||||
title="Update interval (in seconds)"
|
||||
placeholder={Constants.DEFAULT_TIME_INTERVAL.toString()}
|
||||
keyboardType="numeric"
|
||||
|
|
|
|||
|
|
@ -221,6 +221,6 @@ export async function initialize() {
|
|||
flush();
|
||||
}
|
||||
}),
|
||||
(currentSettings.timeInterval || Constants.DEFAULT_TIME_INTERVAL) * 1000
|
||||
(Number(currentSettings.timeInterval) || Constants.DEFAULT_TIME_INTERVAL) * 1000
|
||||
);
|
||||
}
|
||||
|
|
|
|||
2
plugins/defs.d.ts
vendored
2
plugins/defs.d.ts
vendored
|
|
@ -29,7 +29,7 @@ type LFMSettings = {
|
|||
appName: string;
|
||||
username: string;
|
||||
showTimestamp: boolean;
|
||||
timeInterval: number;
|
||||
timeInterval: number | string;
|
||||
listeningTo: boolean;
|
||||
ignoreSpotify: boolean;
|
||||
verboseLogging: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue