You've already forked joplin
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:
@@ -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':
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user