fixed overlay update after renaming
This commit is contained in:
parent
114d12a797
commit
45b3284497
2 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ class ImageEntry {
|
|||
if (path is String) this.path = path;
|
||||
final contentId = newFields['contentId'];
|
||||
if (contentId is int) this.contentId = contentId;
|
||||
final sourceTitle = newFields['sourceTitle'];
|
||||
final sourceTitle = newFields['title'];
|
||||
if (sourceTitle is String) this.sourceTitle = sourceTitle;
|
||||
_bestTitle = null;
|
||||
metadataChangeNotifier.notifyListeners();
|
||||
|
|
|
@ -156,7 +156,7 @@ class FullscreenActionDelegate {
|
|||
}
|
||||
|
||||
Future<void> _showRenameDialog(BuildContext context, ImageEntry entry) async {
|
||||
final currentName = entry.bestTitle;
|
||||
final currentName = entry.filename ?? entry.sourceTitle;
|
||||
final controller = TextEditingController(text: currentName);
|
||||
final newName = await showDialog<String>(
|
||||
context: context,
|
||||
|
|
Loading…
Reference in a new issue