Skip to content

Commit

Permalink
feat: added 'Open config folder' button
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 31, 2024
1 parent 6bf7c08 commit 4f95fa9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions aw_qt/trayicon.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import sys
import logging
import signal
import os
import signal
import subprocess
import sys
import webbrowser
from typing import Any, Optional, Dict
from pathlib import Path
from typing import Any, Dict, Optional

import aw_core
from PyQt6 import QtCore
from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import (
QApplication,
QSystemTrayIcon,
QMessageBox,
QMenu,
QWidget,
QMessageBox,
QPushButton,
QSystemTrayIcon,
QWidget,
)
from PyQt6.QtGui import QIcon

import aw_core

from .manager import Manager, Module

Expand Down Expand Up @@ -116,6 +115,9 @@ def _build_rootmenu(self) -> None:
menu.addAction(
"Open log folder", lambda: open_dir(aw_core.dirs.get_log_dir(None))
)
menu.addAction(
"Open config folder", lambda: open_dir(aw_core.dirs.get_config_dir(None))
)
menu.addSeparator()

exitIcon = QIcon.fromTheme(
Expand Down

0 comments on commit 4f95fa9

Please sign in to comment.