diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-02 21:53:42 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-02 21:53:42 -0500 |
commit | 34faa1405cd386e77a6d2fe4b76626f9fe03ae59 (patch) | |
tree | 24522e461430ccbccad23b5ef4a198d061e71366 | |
parent | 14317bb513846a57034ecd21187a81fd2e861e85 (diff) | |
parent | 6bd6fd8398cfd19443a908c51a91a733626866d1 (diff) | |
download | abaddon-portaudio-34faa1405cd386e77a6d2fe4b76626f9fe03ae59.tar.gz abaddon-portaudio-34faa1405cd386e77a6d2fe4b76626f9fe03ae59.zip |
Merge branch 'master' into theming
-rw-r--r-- | src/abaddon.cpp | 1 | ||||
-rw-r--r-- | src/startup.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp index c8b294e..ccc9022 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -177,6 +177,7 @@ static void MainEventHandler(GdkEvent *event, void *main_window) { int Abaddon::StartGTK() { m_gtk_app = Gtk::Application::create("com.github.uowuo.abaddon"); + Glib::set_application_name(APP_TITLE); #ifdef WITH_LIBHANDY m_gtk_app->signal_activate().connect([] { diff --git a/src/startup.cpp b/src/startup.cpp index 1bfd9a4..b6d09a3 100644 --- a/src/startup.cpp +++ b/src/startup.cpp @@ -29,7 +29,7 @@ std::optional<std::pair<std::string, std::string>> ParseCookie(const Glib::ustri } std::optional<Glib::ustring> GetJavascriptFileFromAppPage(const Glib::ustring &contents) { - auto regex = Glib::Regex::create(R"(/assets/\w{20}.js)"); + auto regex = Glib::Regex::create(R"(/assets/\w+\.?\w{20}\.js)"); std::vector<Glib::ustring> matches; // regex->match_all doesnt work for some reason @@ -43,8 +43,8 @@ std::optional<Glib::ustring> GetJavascriptFileFromAppPage(const Glib::ustring &c start_position += str.size(); } - if (matches.size() >= 2) { - return matches[matches.size() - 2]; + if (matches.size() >= 10) { + return matches[matches.size() - 10]; } return {}; |