mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-02 08:09:47 +08:00
feat: add configurable main page back behavior (#870)
* feat: add configurable main page back behavior Add setting to control whether back button exits directly or returns to first tab * update --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -211,7 +211,8 @@ class SettingBoxKey {
|
||||
msgUnReadTypeV2 = 'msgUnReadTypeV2',
|
||||
hiddenSettingUnlocked = 'hiddenSettingUnlocked',
|
||||
enableGradientBg = 'enableGradientBg',
|
||||
navBarSort = 'navBarSort';
|
||||
navBarSort = 'navBarSort',
|
||||
directExitOnBack = 'directExitOnBack';
|
||||
}
|
||||
|
||||
class LocalCacheKey {
|
||||
|
||||
@@ -719,4 +719,7 @@ class Pref {
|
||||
|
||||
static bool get continuePlayInBackground =>
|
||||
_setting.get(SettingBoxKey.continuePlayInBackground, defaultValue: false);
|
||||
|
||||
static bool get directExitOnBack =>
|
||||
_setting.get(SettingBoxKey.directExitOnBack, defaultValue: false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user