mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 08:58:13 +01:00 
			
		
		
		
	added scanner status indicator and enabled the scanner on android
This commit is contained in:
		| @@ -278,6 +278,7 @@ int sdrpp_main(int argc, char* argv[]) { | ||||
|     core::configManager.conf["modules"][modCount++] = "frequency_manager.so"; | ||||
|     core::configManager.conf["modules"][modCount++] = "recorder.so"; | ||||
|     core::configManager.conf["modules"][modCount++] = "rigctl_server.so"; | ||||
|     core::configManager.conf["modules"][modCount++] = "scanner.so"; | ||||
| #endif | ||||
|  | ||||
|     // Fix missing elements in config | ||||
|   | ||||
| @@ -102,11 +102,21 @@ private: | ||||
|             if (ImGui::Button("Start##scanner_start", ImVec2(menuWidth, 0))) { | ||||
|                 _this->start(); | ||||
|             } | ||||
|             ImGui::Text("Status: Idle"); | ||||
|         } | ||||
|         else { | ||||
|             if (ImGui::Button("Stop##scanner_start", ImVec2(menuWidth, 0))) { | ||||
|                 _this->stop(); | ||||
|             } | ||||
|             if (_this->receiving) { | ||||
|                 ImGui::TextColored(ImVec4(0, 1, 0, 1), "Status: Receiving"); | ||||
|             } | ||||
|             else if (_this->tuning) { | ||||
|                 ImGui::TextColored(ImVec4(0, 1, 1, 1), "Status: Tuning"); | ||||
|             } | ||||
|             else { | ||||
|                 ImGui::TextColored(ImVec4(1, 1, 0, 1), "Status: Scanning"); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user