1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Android: Toggle plugin panels using a button in the toolbar (#10180)

This commit is contained in:
Henry Heino
2024-03-25 04:39:48 -07:00
committed by GitHub
parent 2de5c1bbf8
commit 40dbb8bd7f
7 changed files with 122 additions and 55 deletions

View File

@@ -259,6 +259,7 @@ const appDefaultState: AppState = { ...defaultState, sideMenuOpenPercent: 0,
noteSideMenuOptions: null,
isOnMobileData: false,
disableSideMenuGestures: false,
showPanelsDialog: false,
};
const appReducer = (state = appDefaultState, action: any) => {
@@ -379,6 +380,11 @@ const appReducer = (state = appDefaultState, action: any) => {
newState.sideMenuOpenPercent = action.value;
break;
case 'TOGGLE_PLUGIN_PANELS_DIALOG':
newState = { ...state };
newState.showPanelsDialog = !newState.showPanelsDialog;
break;
case 'NOTE_SELECTION_TOGGLE':
{