fix: branch switch

This commit is contained in:
Rongjian Zhang 2020-01-27 15:07:16 +08:00
parent ba612d63ad
commit 867f617276
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ class RepositoryScreen extends StatelessWidget {
items: refs
.map((b) => PickerItem(b.name, text: b.name))
.toList(),
onClose: (ref) {
onChange: (ref) {
if (ref != branch) {
Provider.of<ThemeModel>(context).push(
context, '/$owner/$name?ref=$ref',