Browse Source

Removed Profile.reload method, invalid concept

Almost everything won't support a reload option, simply because it can't
redefine keybinds during operation

> While this means you'll have to restart (stop tyrell, modify key-bind, start
tyrell) it's safer... perhaps in a future version I can determine a
method to "hot-reload" key-binds (assuming they successfully load)
apollo 5 days ago
parent
commit
e529c5eebc
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tyrell.py

+ 1 - 6
tyrell.py

@@ -343,10 +343,6 @@ class Profile:
             if not _exists(_join(self.name, "keys")):
                 _write_example(self.name)
                 _write_example_mirror(self.name)
-        # Initial load
-        self.reload()
-    
-    def reload(self):
         # Load toml config
         with open(_join(self.name, self.name+".toml"), "r") as f:
             dat = _toml_load(f)
@@ -381,5 +377,4 @@ if __name__ == "__main__":
         _print_warn("Missing '_example' profile, creating...")
         p = Profile("_example")
         _print_ok("")
-        exit()
-    _print_ok("All okay")
+    _print_ok("")