Skip to content

Commit

Permalink
Moved feedback to app header
Browse files Browse the repository at this point in the history
Moved feedback to app header instead of opening it automatically.
  • Loading branch information
MagicLike committed Mar 12, 2023
1 parent e3c12e6 commit 1a99a42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions openandroidinstaller/openandroidinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ def main(page: Page, test: bool = False, test_config: str = "sargo"):
padding=15,
tooltip="Frequently asked questions and encountered issues.",
),
Container(
content=ElevatedButton(
icon=icons.BUG_REPORT_OUTLINED,
text="Give feedback",
on_click=lambda _: webbrowser.open(
"https://openandroidinstaller.org/feedback.html"
),
),
padding=15,
tooltip="Give feedback about your experience with Open Android Installer",
),
Container(
content=ElevatedButton(
icon=icons.BUG_REPORT_OUTLINED,
Expand Down
3 changes: 0 additions & 3 deletions openandroidinstaller/views/success_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ def build(
):
def close_window(e):
logger.success("Success! Close the window.")
# open the feedback page
feedback_url = "https://openandroidinstaller.org/feedback.html"
webbrowser.open(feedback_url)
# close the window
self.page.window_close()

Expand Down

0 comments on commit 1a99a42

Please sign in to comment.