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', className: 'txt-small sidebar-iconbutton',
tooltipText: 'Wifi | Right-click to configure', tooltipText: 'Wifi | Right-click to configure',
onClicked: () => Network.toggleWifi(), onClicked: () => Network.toggleWifi(),
onSecondaryClick: () => { onSecondaryClickRelease: () => {
sidebarOptionsStack.focusName('Wifi networks') execAsync(['bash', '-c', `${userOptions.apps.network}`]).catch(print);
closeEverything();
}, },
child: NetworkIndicator(), child: NetworkIndicator(),
setup: (self) => { setup: (self) => {