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:
parent
e989ad9715
commit
9c0b0f64c4
@ -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),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user