1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-18 19:22:54 +01:00

fix: branch switch

This commit is contained in:
Rongjian Zhang 2020-01-27 15:07:16 +08:00
parent ba612d63ad
commit 867f617276

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',