Skip to content

Commit

Permalink
Fixed model add dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JHubi1 committed Aug 24, 2024
1 parent 1d3a5e9 commit 17c2763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/settings/interface.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:dartx/dartx.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';

Expand All @@ -9,6 +8,7 @@ import '../screen_settings.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:dartx/dartx.dart';
import 'package:duration_picker/duration_picker.dart';
import 'package:dynamic_color/dynamic_color.dart';

Expand Down
8 changes: 1 addition & 7 deletions lib/worker/setter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,6 @@ void setModel(BuildContext context, Function setState) {
if (addIndex == index) {
usedIndex = oldIndex;
Navigator.of(context).pop();
// ScaffoldMessenger.of(context)
// .showSnackBar(SnackBar(
// content: Text(
// AppLocalizations.of(
// context)!
// .modelDialogAddSteps),
// showCloseIcon: true));
addModel(context, setState);
}
if (!chatAllowed && model != null) {
Expand Down Expand Up @@ -462,6 +455,7 @@ void addModel(BuildContext context, Function setState) async {
if (model!.split(":").length == 1) {
model = "$model:latest";
}
chatAllowed = true;
});
ScaffoldMessenger.of(mainContext!).showSnackBar(
SnackBar(content: Text(downloadSuccessText), showCloseIcon: true));
Expand Down

0 comments on commit 17c2763

Please sign in to comment.