Răsfoiți Sursa

app: disable numbers in menu cos they look ugly

darkfi 1 an în urmă
părinte
comite
0133a33caf
2 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 4 5
      bin/app/src/app/schema/menu.rs
  2. 2 1
      bin/app/src/main.rs

+ 4 - 5
bin/app/src/app/schema/menu.rs

@@ -218,11 +218,10 @@ pub async fn make(app: &App, window: SceneNodePtr) {
         layer_node.clone().link(node);
 
         // Desktop platforms
-        #[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
-        let text = format!("{}. #{channel}", i + 1);
-
-        // Mobile platforms
-        #[cfg(any(target_os = "android", target_os = "ios"))]
+        //#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
+        //let text = format!("{}. #{channel}", i + 1);
+        //// Mobile platforms
+        //#[cfg(any(target_os = "android", target_os = "ios"))]
         let text = "#".to_string() + channel;
 
         // Create some text

+ 2 - 1
bin/app/src/main.rs

@@ -125,7 +125,8 @@ fn main() {
     let async_runtime = app::AsyncRuntime::new(ex.clone());
     async_runtime.start();
 
-    if cfg!(features = "enable-netdebug") {
+    #[cfg(feature = "enable-netdebug")]
+    {
         let sg_root2 = sg_root.clone();
         let ex2 = ex.clone();
         let zmq_task = ex.spawn(async {