Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added 'Open config folder' button #104

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading