mirror of
https://github.com/rainloreley/shlink-manager.git
synced 2025-01-02 14:44:55 +01:00
tiny code change
This commit is contained in:
parent
4dcce26caf
commit
dc03457397
@ -53,14 +53,13 @@ class ServerManager {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
|
||||
if (prefs.getBool('first_run') ?? true) {
|
||||
FlutterSecureStorage storage = const FlutterSecureStorage();
|
||||
|
||||
await storage.deleteAll();
|
||||
|
||||
prefs.setBool('first_run', false);
|
||||
} else {
|
||||
serverUrl = await storage.read(key: "shlink_url");
|
||||
apiKey = await storage.read(key: "shlink_apikey");
|
||||
}
|
||||
serverUrl = await storage.read(key: "shlink_url");
|
||||
apiKey = await storage.read(key: "shlink_apikey");
|
||||
}
|
||||
|
||||
/// Saves the provided server credentials to [FlutterSecureStorage]
|
||||
|
Loading…
x
Reference in New Issue
Block a user