mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-28 10:28:58 -05:00
fix: refresh only if branch changes
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user