Skip to content

Commit 27af7b1

Browse files
authored
Merge pull request #425 from SGI-CAPP-AT2/del_profile_bug_fix
fix: deleting profile will refresh current profile storage and tasks
2 parents 9bdc6f6 + ca60de2 commit 27af7b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/app/modules/profile/views/deleteprofiledialog.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:get/get.dart';
3+
import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
34
import 'package:taskwarrior/app/modules/splash/controllers/splash_controller.dart';
45
import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
56
import 'package:taskwarrior/app/utils/constants/utilites.dart';
@@ -55,6 +56,7 @@ class DeleteProfileDialog extends StatelessWidget {
5556
try {
5657
Get.find<SplashController>().deleteProfile(profile);
5758
// Navigator.of(context).pop();
59+
Get.find<HomeController>().refreshTaskWithNewProfile();
5860
Get.back();
5961
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
6062
content: Text(

0 commit comments

Comments
 (0)