mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-15 04:12:30 -06:00
fix: Refactor labels structure
This commit is contained in:
@@ -21,7 +21,7 @@ class SavedViewCubit extends Cubit<SavedViewState> {
|
||||
storagePaths: _labelRepository.state.storagePaths,
|
||||
tags: _labelRepository.state.tags,
|
||||
)) {
|
||||
_labelRepository.subscribe(
|
||||
_labelRepository.addListener(
|
||||
this,
|
||||
onChanged: (labels) {
|
||||
emit(
|
||||
@@ -76,7 +76,7 @@ class SavedViewCubit extends Cubit<SavedViewState> {
|
||||
@override
|
||||
Future<void> close() {
|
||||
_savedViewRepository.unsubscribe(this);
|
||||
_labelRepository.unsubscribe(this);
|
||||
_labelRepository.removeListener(this);
|
||||
return super.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user