Report if a scan job has started.
This commit is contained in:
@@ -591,3 +591,10 @@ bool XInsaneWidget::IsScannerDiscoveryRunning()
|
||||
return false;
|
||||
return m_backgroundDiscovery->IsRunning();
|
||||
}
|
||||
|
||||
bool XInsaneWidget::IsScanning()
|
||||
{
|
||||
if (!m_scanProject)
|
||||
return false;
|
||||
return m_scanProject->GetWip();
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
void EnableScanButton(bool enable); // For CallAfter.
|
||||
void Setup(wxConfig * config, TimeredStatusBar * sb);
|
||||
bool IsScannerDiscoveryRunning();
|
||||
bool IsScanning();
|
||||
private:
|
||||
wxConfig * m_config;
|
||||
wxWeakRef<TimeredStatusBar> m_sb;
|
||||
|
||||
Reference in New Issue
Block a user