mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
tweaks (#1788)
* tweak * opt: show bar * opt: crc32 * opt: appsign * opt: Get * opt: compress only if large * opt: wbi * tweak Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Signed-off-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com> Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
31e5692dff
commit
521ca3ad18
@@ -19,8 +19,7 @@ class HomeController extends GetxController
|
||||
late List<HomeTabType> tabs;
|
||||
late TabController tabController;
|
||||
|
||||
StreamController<bool>? searchBarStream;
|
||||
final bool hideSearchBar = Pref.hideSearchBar;
|
||||
RxBool? searchBar;
|
||||
final bool useSideBar = Pref.useSideBar;
|
||||
|
||||
bool enableSearchWord = Pref.enableSearchWord;
|
||||
@@ -38,8 +37,8 @@ class HomeController extends GetxController
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
|
||||
if (hideSearchBar) {
|
||||
searchBarStream = StreamController<bool>.broadcast();
|
||||
if (Pref.hideSearchBar) {
|
||||
searchBar = true.obs;
|
||||
}
|
||||
|
||||
if (enableSearchWord) {
|
||||
@@ -90,10 +89,4 @@ class HomeController extends GetxController
|
||||
}
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
searchBarStream?.close();
|
||||
super.onClose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user