aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/MainWindow.cpp
AgeCommit message (Collapse)Author
2022-10-11Update launcher/ui/MainWindow.cpp Tayou
make " Offline" string for profilers translatable Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net> Signed-off-by: Tayou <31988415+TayouVR@users.noreply.github.com>
2022-10-10Merge Launch ButtonsTayou
Signed-off-by: Tayou <tayou@gmx.net>
2022-09-20fix: simplify abort handling and add missing emitsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-15fix: enable demo launch only on supported instancesflow
e.g. >= 1.3.1 instances Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-15change: move demo action to "Play offline" menuflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-15Add 'Ctrl+Alt+O' Shortcut to launch demo instance.jopejoe1
Signed-off-by: jopejoe1 <johannes@joens.email>
2022-09-15Added Launch Demo button.jopejoe1
Signed-off-by: jopejoe1 <johannes@joens.email>
2022-08-12fix: hide 'More news...' button if the news aren't loaded yetflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-30Trash instances instead of deleting (when possible) (#549)Ryan Cao
Squashed because of :pofat: commit history
2022-07-10Merge branch 'develop' into feature/sparkle-macSefa Eyeoglu
# Conflicts: # .github/workflows/build.yml
2022-07-10fix: fix slots for Qt 6Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 5.15Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-06Revert "fix: remove updater if it is not used"Sefa Eyeoglu
This reverts commit 2ff0aa09e35eb6910ef0a030ea41f84a1ed95782. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-01Merge pull request #845 from flowln/news_in_launchertimoreo
2022-06-30Merge pull request #826 from kthchew/fix/kill-menubarSefa Eyeoglu
2022-06-27Merge pull request #827 from kthchew/fix/menubar-separatorEzekiel Smith
Workaround Qt bug to fix menu bar separators on macOS
2022-06-25feat: add news reader dialogflow
Makes it easier to read about new blog posts! Yay :D
2022-06-22Workaround Qt bug to fix menu bar separators on macOSKenneth Chew
2022-06-21Disable launch actions in menu bar when last instance is deletedKenneth Chew
This caused a crash when the action was selected!
2022-06-21Separate the kill and launch instance actionsKenneth Chew
2022-06-20Rename main windowjn64
2022-06-12chore: add license headersSefa Eyeoglu
2022-06-12fix: remove updater if it is not usedSefa Eyeoglu
2022-06-10change slot nameVance
2022-06-10fix: update toolbar when instance state changesVance
2022-05-22Merge pull request #577 from PolyMC/fix/toolbar_🦀_fixSefa Eyeoglu
2022-05-19Refactor code, create abstract class `ExternalUpdater`Kenneth Chew
(Hopefully) this makes implementing updaters using external libraries easier on other platforms. To implement an updater on a new platform, create a new class that implements the pure virtual methods from `ExternalUpdater` and add code in the `UpdateChecker` initializer to initialize the new class.
2022-05-19Implement automatic and manual updates on macOSKenneth Chew
2022-05-17Merge pull request #529 from flowln/vertical_toolbartxtsd
Set right orientation for instance toolbar when moving it around
2022-05-17Fix toolbar disappearing in a certain circumstance.Lenny McLennington
2022-05-15Merge pull request #539 from kthchew/fix/translation-switchflow
Fix untranslated strings after changing language
2022-05-09Make profile menu scrollableKenneth Chew
2022-05-08Retranslate playtime text immediately when language is changedKenneth Chew
2022-05-08Retranslate account actions after switching languageKenneth Chew
2022-05-07fix: always have the instance toolbar be verticalflow
This overrides the orientation set automatically by Qt when we start moving the toolbar around.
2022-04-22added and fixed some Mnemonics in MainWindowDaniel Schemp
2022-04-18remove "on x"DioEgizio
2022-04-17Fix bugs with instance menu bar options when opening without instancesKenneth Chew
- The launch option is no longer empty. - The program now checks on startup whether an instance is selected to decide whether to disable instance options. Also, get rid of a dynamic cast.
2022-04-16Use `TranslatedAction` instead of `QAction` for menu bar actionsKenneth Chew
2022-04-16Remove the Edit menu bar menuKenneth Chew
It wouldn't bring much utility. - The keyboard shortcuts for copy/paste/etc. already work and are well-known. The menu bar likely doesn't need to advertise them. - There's not very many places you would be able to use these options in the main window (because there's not many places to type stuff in the main window). It would only be applicable on systems with a native menu bar that shows in all other windows as well (but again, the keyboard shortcuts still work). Also, rename `actionWiki` -> `actionOpenWiki` to match the corresponding `on_actionOpenWiki_triggered`
2022-04-16Use preexisting actions in the menu barKenneth Chew
The code is now much cleaner. Because the actions already present are enabled elsewhere even when the menu bar is hidden, keyboard shortcuts added to them automatically work regardless of whether the menu bar is visible. This means that the hacky workaround related to this can be removed.
2022-04-16Close the current window instead of the main window from the menu barKenneth Chew
Systems with native menu bars show the same menu bar for all child windows. As a result, you cannot assume that the menu bar's parent (the `MainWindow`) will be the window in focus.
2022-04-15Add logged in accounts to the profiles menu bar menuKenneth Chew
Additionally, add keyboard shortcuts for switching between different accounts.
2022-04-15Add option to always show menu bar instead of toolbarKenneth Chew
For those who like keyboard navigation at the expense of aesthetics.
2022-04-15Implement help (open wiki) menu bar actionKenneth Chew
2022-04-15Fix keyboard shortcut for delete instance on some devicesKenneth Chew
My laptop has a key labeled "delete," but for some reason it doesn't work with `QKeySequence::Delete`. Instead it's interpreted as a backspace.
2022-04-15Improve menu bar keyboard usabilityKenneth Chew
More reasonable (unique) menu access keys were chosen. In addition, move the settings action from the Help menu to the Edit menu.
2022-04-15Only enable instance options while an instance is selectedKenneth Chew
2022-04-08Fix typos causing build failures on non-macOS systemsKenneth Chew
It also did the exact opposite thing I was trying to do, so that's fixed too...
2022-04-08Show and hide the menu bar with the 'alt' keyKenneth Chew
Only applicable for systems without a native menu bar (i.e. almost anything that is not macOS or Ubuntu Unity). On these systems, the menu bar appears on top of the window, which does not look good next to the tool bar already up there. When the menu bar is hidden, the keyboard shortcuts set by the menu bar are disabled. They should always work, so this also adds a workaround for that.