mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
API improvements
- Simple function connect() which loads saves settings from preferences file
This commit is contained in:
parent
6d3db243c3
commit
055cc37e68
4 changed files with 39 additions and 18 deletions
|
|
@ -58,6 +58,8 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
|
|||
|
||||
final Size screenSize = MediaQuery.of(context).size;
|
||||
|
||||
load();
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Login Settings"),
|
||||
|
|
@ -136,7 +138,6 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
|
|||
|
||||
await InvenTreeUserPreferences().saveLoginDetails(_addr, _user, _pass);
|
||||
|
||||
print("Saved");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue