Skip to content

Commit

Permalink
fix: deleting profile will refresh current profile storage and tasks
Browse files Browse the repository at this point in the history
After deletionprofile,  tasks and storage directory was not being synced.
Fixes: #423
  • Loading branch information
SGI-CAPP-AT2 committed Dec 29, 2024
1 parent 7a4340c commit ca60de2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/app/modules/profile/views/deleteprofiledialog.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
import 'package:taskwarrior/app/modules/splash/controllers/splash_controller.dart';
import 'package:taskwarrior/app/utils/constants/taskwarrior_colors.dart';
import 'package:taskwarrior/app/utils/constants/utilites.dart';
Expand Down Expand Up @@ -55,6 +56,7 @@ class DeleteProfileDialog extends StatelessWidget {
try {
Get.find<SplashController>().deleteProfile(profile);
// Navigator.of(context).pop();
Get.find<HomeController>().refreshTaskWithNewProfile();
Get.back();
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(
Expand Down

0 comments on commit ca60de2

Please sign in to comment.