mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
Fix missed words in rename
This commit is contained in:
@ -40,7 +40,7 @@ class _SyncButtonState extends State<SyncButton> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final repo = Provider.of<Repository>(context);
|
final repo = Provider.of<GitJournalRepo>(context);
|
||||||
|
|
||||||
if (_connectivity == ConnectivityResult.none) {
|
if (_connectivity == ConnectivityResult.none) {
|
||||||
return GitPendingChangesBadge(
|
return GitPendingChangesBadge(
|
||||||
@ -97,7 +97,7 @@ class _SyncButtonState extends State<SyncButton> {
|
|||||||
|
|
||||||
void _syncRepo() async {
|
void _syncRepo() async {
|
||||||
try {
|
try {
|
||||||
final repo = Provider.of<Repository>(context, listen: false);
|
final repo = Provider.of<GitJournalRepo>(context, listen: false);
|
||||||
await repo.syncNotes();
|
await repo.syncNotes();
|
||||||
} on GitException catch (e) {
|
} on GitException catch (e) {
|
||||||
showSnackbar(context, tr('widgets.SyncButton.error', args: [e.cause]));
|
showSnackbar(context, tr('widgets.SyncButton.error', args: [e.cause]));
|
||||||
@ -107,7 +107,7 @@ class _SyncButtonState extends State<SyncButton> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IconData _syncStatusIcon() {
|
IconData _syncStatusIcon() {
|
||||||
final repo = Provider.of<Repository>(context);
|
final repo = Provider.of<GitJournalRepo>(context);
|
||||||
switch (repo.syncStatus) {
|
switch (repo.syncStatus) {
|
||||||
case SyncStatus.Error:
|
case SyncStatus.Error:
|
||||||
return Icons.cloud_off;
|
return Icons.cloud_off;
|
||||||
@ -181,7 +181,7 @@ class GitPendingChangesBadge extends StatelessWidget {
|
|||||||
color: darkMode ? Colors.black : Colors.white,
|
color: darkMode ? Colors.black : Colors.white,
|
||||||
);
|
);
|
||||||
|
|
||||||
final repo = Provider.of<Repository>(context);
|
final repo = Provider.of<GitJournalRepo>(context);
|
||||||
|
|
||||||
return Badge(
|
return Badge(
|
||||||
badgeContent: Text(repo.numChanges.toString(), style: style),
|
badgeContent: Text(repo.numChanges.toString(), style: style),
|
||||||
|
Reference in New Issue
Block a user