Browse Source

code improvements

pull/186/head
mhogomchungu 7 months ago
parent
commit
58c03a2179
  1. 2
      CMakeLists.txt
  2. 2
      LINUX_BUILD_INSTRUCTIONS
  3. 28
      src/sirikali.cpp
  4. 1
      src/sirikali.h

2
CMakeLists.txt

@ -80,7 +80,7 @@ if( DEFINED QT5 AND NOT QT5 )
endif()
if(NOT DEFINED NONETWORKSUPPORT)
set( NONETWORKSUPPORT "false" )
set( NONETWORKSUPPORT "true" )
endif()
set( QT5 "true" )

2
LINUX_BUILD_INSTRUCTIONS

@ -59,7 +59,7 @@ This project depends on lxqt_wallet project and it ships with an internal copy o
if you want SiriKali to unconditionally use the internal copy of the project or to "false" to make the build process
use a system installed version if found.
-DNONETWORKSUPPORT=false
-DNONETWORKSUPPORT=true
This options tells the build process to add QNetwork support. Set this option to true if you do not want SiriKali to
connect to the internet to check for backend updates. SiriKali will not automatically connect to the internet
without user consent. This option was added because some versions of Qt crashes some versions of gcc

28
src/sirikali.cpp

@ -783,7 +783,7 @@ void sirikali::startGUI( const QString& volume )
this->startGUI( volume,m ) ;
}else{
this->disableAll() ;
this->disableAll_1() ;
this->showMainWindow() ;
@ -2208,6 +2208,7 @@ void sirikali::emergencyShutDown()
void sirikali::unMountAll()
{
m_mountInfo.announceEvents( false ) ;
m_allowEnableAll.setFalse() ;
this->disableAll() ;
@ -2235,6 +2236,8 @@ void sirikali::unMountAll()
}
}
m_allowEnableAll.setTrue() ;
this->updateList() ;
this->enableAll() ;
@ -2293,15 +2296,22 @@ void sirikali::slotCurrentItemChanged( QTableWidgetItem * current,QTableWidgetIt
void sirikali::disableAll()
{
if( !utility::platformIsOSX() ){
m_ui->pbmenu->setEnabled( false ) ;
m_ui->pbupdate->setEnabled( false ) ;
m_ui->tableWidget->setEnabled( false ) ;
m_ui->pbunlockvolume->setEnabled( false ) ;
m_ui->pbcreate->setEnabled( false ) ;
m_ui->pbFavorites->setEnabled( false ) ;
}
m_ui->pbmenu->setEnabled( false ) ;
m_ui->pbupdate->setEnabled( false ) ;
m_ui->tableWidget->setEnabled( false ) ;
m_ui->pbunlockvolume->setEnabled( false ) ;
m_ui->pbcreate->setEnabled( false ) ;
m_ui->pbFavorites->setEnabled( false ) ;
}
void sirikali::disableAll_1()
{
m_ui->pbmenu->setEnabled( false ) ;
//m_ui->pbupdate->setEnabled( false ) ;
m_ui->tableWidget->setEnabled( false ) ;
m_ui->pbunlockvolume->setEnabled( false ) ;
m_ui->pbcreate->setEnabled( false ) ;
m_ui->pbFavorites->setEnabled( false ) ;
}
void sirikali::enableAll()

1
src/sirikali.h

@ -156,6 +156,7 @@ private:
void updateList( const volumeInfo& ) ;
void setUpAppMenu( void ) ;
void disableAll( void ) ;
void disableAll_1( void ) ;
void closeEvent( QCloseEvent * e ) ;
void setUpFont( void ) ;
void setUpShortCuts( void ) ;

Loading…
Cancel
Save