forked from cwtch.im/cwtch-ui
Merge pull request 'fix ffi DeactivatePeerEngine call - hide it - bump pubspec version' (#599) from fixDeactivate into trunk
Reviewed-on: cwtch.im/cwtch-ui#599 Reviewed-by: Sarah Jamie Lewis <sarah@openprivacy.ca>
This commit is contained in:
commit
00c385bb91
|
@ -312,7 +312,7 @@ class CwtchFfi implements Cwtch {
|
|||
|
||||
// ignore: non_constant_identifier_names
|
||||
void DeactivatePeerEngine(String profile) {
|
||||
var deactivatePeerEngineC = library.lookup<NativeFunction<string_to_void_function>>("c_ActivatePeerEngine");
|
||||
var deactivatePeerEngineC = library.lookup<NativeFunction<string_to_void_function>>("c_DeactivatePeerEngine");
|
||||
final DeactivatePeerEngine = deactivatePeerEngineC.asFunction<StringFn>();
|
||||
final ut8profile = profile.toNativeUtf8();
|
||||
DeactivatePeerEngine(ut8profile, ut8profile.length);
|
||||
|
|
|
@ -172,7 +172,7 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
|
|||
|
||||
// Enabled
|
||||
Visibility(
|
||||
visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty,
|
||||
visible: Provider.of<ProfileInfoState>(context).onion.isNotEmpty && !Provider.of<ProfileInfoState>(context).enabled,
|
||||
child: SwitchListTile(
|
||||
title: Text(AppLocalizations.of(context)!.profileEnabled, style: TextStyle(color: Provider.of<Settings>(context).current().mainTextColor)),
|
||||
subtitle: Text(AppLocalizations.of(context)!.profileEnabledDescription),
|
||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.9.0+35
|
||||
version: 1.10.0+36
|
||||
|
||||
environment:
|
||||
sdk: ">=2.15.0 <3.0.0"
|
||||
|
|
Loading…
Reference in New Issue