1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-11 04:54:20 +08:00

resetGitHost: Save the new folder in the settings

Otherwise when we restart the app the old repo is still used.
This commit is contained in:
Vishesh Handa
2020-11-08 10:44:20 +01:00
parent 5da69de515
commit a90541df59

@ -180,6 +180,11 @@ class _GitRemoteSettingsScreenState extends State<GitRemoteSettingsScreen> {
}
repoFolderName = repoFolderName + num.toString();
var settings = Provider.of<Settings>(context);
settings.folderName = repoFolderName;
settings.storeInternally = true;
settings.save();
var route = MaterialPageRoute(
builder: (context) => GitHostSetupScreen(
repoFolderName: repoFolderName,