Skip to content

Commit

Permalink
Merge pull request #425 from SGI-CAPP-AT2/del_profile_bug_fix
Browse files Browse the repository at this point in the history
fix: deleting profile will refresh current profile storage and tasks
  • Loading branch information
Pavel401 authored Jan 26, 2025
2 parents 9bdc6f6 + ca60de2 commit 27af7b1
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 27af7b1

Please sign in to comment.