sideright: wifi icon open app instead of use tab

This commit is contained in:
end-4
2024-06-21 21:26:01 +07:00
parent b72685f6a3
commit 8237db107f
@@ -15,8 +15,9 @@ export const ToggleIconWifi = (props = {}) => Widget.Button({
className: 'txt-small sidebar-iconbutton',
tooltipText: 'Wifi | Right-click to configure',
onClicked: () => Network.toggleWifi(),
onSecondaryClick: () => {
sidebarOptionsStack.focusName('Wifi networks')
onSecondaryClickRelease: () => {
execAsync(['bash', '-c', `${userOptions.apps.network}`]).catch(print);
closeEverything();
},
child: NetworkIndicator(),
setup: (self) => {