-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from melianmiko/release/v0.14-2
release/v0.14 2
- Loading branch information
Showing
79 changed files
with
3,902 additions
and
990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ | |
/dist | ||
/scripts/tools | ||
/release.json | ||
/accent.json | ||
|
||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"apiUrl": "https://translate.mmk.pw", | ||
"apiKey": "", | ||
"files": [ | ||
{ | ||
"format": "gettext", | ||
"source": "openfreebuds_qt/assets/i18n/en.po", | ||
"target": "openfreebuds_qt/assets/i18n/%slug%.po" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import sys | ||
import webbrowser | ||
|
||
from PyQt6.QtCore import pyqtSlot | ||
from PyQt6.QtWidgets import QDialog | ||
from qasync import asyncSlot | ||
|
||
import openfreebuds_backend | ||
from openfreebuds_qt.config import OfbQtConfigParser | ||
from openfreebuds_qt.constants import LINK_WEBSITE_HELP | ||
from openfreebuds_qt.designer.first_run_dialog import Ui_OfbQtFirstRunDialog | ||
from openfreebuds_qt.utils import get_img_colored, qt_error_handler | ||
from openfreebuds_qt.constants import WIN32_BODY_STYLE | ||
|
||
|
||
class OfbQtFirstRunDialog(Ui_OfbQtFirstRunDialog, QDialog): | ||
def __init__(self, ctx): | ||
super().__init__(ctx.main_window) | ||
|
||
self.ctx = ctx | ||
self.config = OfbQtConfigParser.get_instance() | ||
|
||
self.setupUi(self) | ||
if sys.platform == "win32": | ||
self.setStyleSheet(WIN32_BODY_STYLE) | ||
|
||
self.autostart_checkbox.setChecked(not self.config.is_containerized_app) | ||
self.autostart_checkbox.setEnabled(not self.config.is_containerized_app) | ||
self.linux_notice.setVisible(sys.platform == 'linux') | ||
|
||
preview_fn = "ofb_linux_preview" if sys.platform == 'linux' else "ofb_win32_preview" | ||
preview_image = get_img_colored(preview_fn, | ||
color=self.palette().text().color().getRgb(), | ||
base_dir="image") | ||
self.preview_root.setPixmap(preview_image) | ||
|
||
@asyncSlot() | ||
async def on_confirm(self): | ||
async with qt_error_handler("OfbQtFirstRunDialog_Confirm", self.ctx): | ||
self.hide() | ||
|
||
if self.autostart_checkbox.isChecked(): | ||
openfreebuds_backend.set_run_at_boot(True) | ||
|
||
self.config.set("ui", "first_run_finished", True) | ||
self.config.save() | ||
|
||
@pyqtSlot() | ||
def on_faq_click(self): | ||
webbrowser.open(LINK_WEBSITE_HELP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.