Skip to content

Commit

Permalink
fix(data): fix data merge error to 2.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuJHua committed Dec 15, 2024
1 parent e95a820 commit f18fa85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/pages/home/media/media_logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MediaLogic extends GetxController with GetSingleTickerProviderStateMixin {
Future<void> cleanFile() async {
state.isCleaning = true;
update(['modal']);
await compute(FileUtil.cleanFile, FileUtil.getRealPath('database', ''));
await FileUtil.cleanFile(FileUtil.getRealPath('database', ''));
await getFilePath(state.mediaType.value);
state.isCleaning = false;
update(['modal']);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/data/pref.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PrefUtil {
/// 修复同步失败导致本地分类丢失
/// 视频缩略图重复生成
if (appVersion != null && appVersion.split('+')[0].compareTo('2.6.3') < 0) {
await compute(FileUtil.cleanFile, FileUtil.getRealPath('database', ''));
await FileUtil.cleanFile(FileUtil.getRealPath('database', ''));
await MediaUtil.regenerateMissingThumbnails();
await compute(IsarUtil.fixV2_6_3, FileUtil.getRealPath('database', ''));
}
Expand Down
6 changes: 3 additions & 3 deletions windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
BitsdojoWindowPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("BitsdojoWindowPlugin"));
ConnectivityPlusWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
DynamicColorPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("DynamicColorPluginCApi"));
FcNativeVideoThumbnailPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FcNativeVideoThumbnailPluginCApi"));
FileSelectorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FileSelectorWindows"));
GalPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GalPluginCApi"));
registry->GetRegistrarForPlugin("GalPluginCApi"));
GeolocatorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GeolocatorWindows"));
IsarFlutterLibsPluginRegisterWithRegistrar(
Expand All @@ -61,7 +61,7 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
RecordWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("RecordWindowsPluginCApi"));
RivePluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("RivePlugin"));
registry->GetRegistrarForPlugin("RivePlugin"));
ScreenBrightnessWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("ScreenBrightnessWindowsPlugin"));
SharePlusWindowsPluginCApiRegisterWithRegistrar(
Expand Down
6 changes: 3 additions & 3 deletions windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ list(APPEND FLUTTER_PLUGIN_LIST
app_links
audioplayers_windows
bitsdojo_window_windows
connectivity_plus
connectivity_plus
dynamic_color
fc_native_video_thumbnail
file_selector_windows
gal
gal
geolocator_windows
isar_flutter_libs
local_auth_windows
Expand All @@ -19,7 +19,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
objectbox_flutter_libs
permission_handler_windows
record_windows
rive_common
rive_common
screen_brightness_windows
share_plus
url_launcher_windows
Expand Down

0 comments on commit f18fa85

Please sign in to comment.