Share Extension: account picker first, hidden folders follow the app's filter + unlock
The app now publishes every uploadable account, the active one, the three lock settings and each account's own hidden-files filter (ShareAccountSync). The sheet lists accounts first when there are several, asks for unlock to use a non-active account (login lock + account-switching lock), and shows hidden folders per the account's app setting behind the hidden-files unlock. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
0cda4a1241
commit
a37524e959
@@ -677,6 +677,19 @@ class FilesController extends ChangeNotifier
|
||||
);
|
||||
}
|
||||
|
||||
/// The hidden-files filter saved for [accountId] - not just the active
|
||||
/// account's, which is all [hiddenFilter] holds. For iOS's Share Extension,
|
||||
/// which follows each account's own setting.
|
||||
static HiddenFilesFilter savedHiddenFilter(
|
||||
SharedPreferences prefs,
|
||||
String Function(String accountId, String baseKey) accountPrefKey,
|
||||
String accountId,
|
||||
) => loadHiddenFilter(
|
||||
prefs,
|
||||
accountPrefKey(accountId, _prefHiddenFilter),
|
||||
accountPrefKey(accountId, _prefShowHiddenFiles),
|
||||
);
|
||||
|
||||
/// Reads a persisted [HiddenFilesFilter], falling back to the old
|
||||
/// show-hidden bool (`true` meant everything incl. hidden) so a pref
|
||||
/// saved before the three-way filter keeps its meaning. [key]s are
|
||||
|
||||
Reference in New Issue
Block a user