fix this code  and save switches state in ./configs/pref.json and load it when app starts     #Functions

    #silent.configure(command=save_config(silent.get(),theme.get()))
    app.mainloop()


def write_config():
    path = os.getcwd()+"configs"
    with open(path, "w") as jsonfile:
        json.dump(config, jsonfile)
        print("Updated configuration written to config.json")


if __name__ == '__main__':
    APP()