File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function updateBtnState(value) {
6363 document . getElementById ( 'start' ) . disabled = ! value ;
6464}
6565
66- function initInfo ( ) {
66+ export function initInfo ( ) {
6767 exec ( 'uname -r && getprop ro.build.version.release && getprop ro.build.fingerprint && getenforce' ) . then ( ( result ) => {
6868 if ( import . meta. env . DEV ) { // vite debug
6969 result . stdout = '6.18.2-linux\n16\nLinuxPC\nEnforcing'
Original file line number Diff line number Diff line change 11import { exec , spawn , toast } from 'kernelsu-alt' ;
2- import { modDir , persistDir , superkey } from '../index.js' ;
2+ import { modDir , persistDir , superkey , initInfo } from '../index.js' ;
33
44let allKpms = [ ] ;
55let searchQuery = '' ;
@@ -126,6 +126,7 @@ async function renderKpmList() {
126126 dialog . querySelector ( '.confirm' ) . onclick = async ( ) => {
127127 await controlModule ( module . name , textField . value ) ;
128128 refreshKpmList ( ) ;
129+ initInfo ( ) ;
129130 textField . value = '' ;
130131 dialog . close ( ) ;
131132 } ;
@@ -138,6 +139,7 @@ async function renderKpmList() {
138139 dialog . querySelector ( '.confirm' ) . onclick = async ( ) => {
139140 await unloadModule ( module . name ) ;
140141 refreshKpmList ( ) ;
142+ initInfo ( ) ;
141143 dialog . close ( ) ;
142144 } ;
143145 dialog . show ( ) ;
You can’t perform that action at this time.
0 commit comments