Skip to content

Commit

Permalink
feat: added 'Open config folder' button (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare authored Jan 31, 2024
1 parent b022753 commit a259608
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 a259608

Please sign in to comment.