1
0
mirror of https://github.com/git-touch/git-touch synced 2025-02-20 13:30:38 +01:00

fix: refresh only if branch changes

This commit is contained in:
Rongjian Zhang 2019-10-06 15:52:41 +08:00
parent e989ad9715
commit 9c0b0f64c4

View File

@ -301,12 +301,14 @@ class RepositoryScreen extends StatelessWidget {
text: (b['name'] as String)))
.toList(),
onClose: (result) {
Provider.of<ThemeModel>(context)
.pushReplacementRoute(
context,
(_) => RepositoryScreen(owner, name,
branch: result),
);
if (result != branch) {
Provider.of<ThemeModel>(context)
.pushReplacementRoute(
context,
(_) => RepositoryScreen(owner, name,
branch: result),
);
}
},
),
);