Skip to content

Commit

Permalink
Rename status function
Browse files Browse the repository at this point in the history
  • Loading branch information
bayasdev committed Apr 2, 2022
1 parent fde57df commit ad288cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions envycontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _create_file(path, content):
with open(path, mode='w', encoding='utf-8') as f:
f.write(content)

def _get_status():
def _query_mode():
if os.path.exists(BLACKLIST_PATH) and os.path.exists(UDEV_INTEGRATED_PATH):
mode = 'integrated'
elif os.path.exists(XORG_PATH) and os.path.exists(MODESET_PATH):
Expand Down Expand Up @@ -314,8 +314,8 @@ def main():
parser.print_help()
sys.exit(1)
args = parser.parse_args()
if args.status:
_get_status()
if args.query:
_query_mode()
elif args.version:
_print_version()
elif args.reset_sddm:
Expand Down

0 comments on commit ad288cb

Please sign in to comment.