1319 Commits

Author SHA1 Message Date
Richard Stanway
5cfc16e9f9 UI: Call setWindowFlags before setupUi
For some reason this has a noticeable performance improvement,
presumably because Qt is notifying all the child widgets?
2020-03-04 23:20:19 +01:00
Matt Gajownik
c50f488085 UI: Dynamically set widget index when renaming sources 2020-03-04 19:22:30 +11:00
Richard Stanway
8f4f33aed8 UI: Move OBSBasicSettings to scoped block
This ensures that the OBSBasicSettings destructor has been run before
the restart prompt appears, preventing bugs related to OBS shutting down
with the settings window still having active callbacks.
2020-03-03 00:05:43 +01:00
Richard Stanway
2f0134bf60 UI: Don't add removed sources when refreshing LoadAudioSources
This can be fired by a callback during source removal. The code was
re-adding the source that was just removed, causing the program to
freeze when trying to remove all sources.
2020-03-02 22:23:13 +01:00
Richard Stanway
2a4a46deed UI: Use invokeMethod to refresh LoadAudioSources
Sources may be removed or destroyed by other threads which resulted in
GUI calls outside of the main Qt thread.
2020-03-02 22:21:02 +01:00
Richard Stanway
57b47ca90a UI: Fix preview not being re-enabled on maximize 2020-03-01 10:02:14 -08:00
Matthieu Cunzi
74acbd7ed0 win-capture: Add Vulkan capture
Co-authored-by: jp9000 <obs.jim@gmail.com>
Co-authored-by: jpark37 <jpark37@users.noreply.github.com>
2020-02-29 04:53:28 -08:00
Jim
19701e3bbc
Merge pull request #2439 from cg2121/decklink-stuff
frontend-plugins: Refactor Decklink out UI
2020-02-27 00:42:25 -08:00
Clayton Groeneveld
fa9dccb7be frontend-plugins: Refactor Decklink out UI 2020-02-26 23:06:20 -06:00
Clayton Groeneveld
ef3f842f0e UI: Remove dock margins 2020-02-26 19:55:07 -06:00
Clayton Groeneveld
0ca8424c66 UI: Fix compiling error with older QT 2020-02-25 22:38:12 -06:00
Clayton Groeneveld
61aeaa5ca3 obs-browser: Enable Linux support
This requires CEF >= 3683
2020-02-25 22:38:12 -06:00
Jim
eb5abf2ae5
Merge pull request #2431 from cg2121/t-bar-size
UI: Make t-bar smaller
2020-02-24 23:27:13 -08:00
Richard Stanway
3667e556db UI: Use deleteLater() rather than explicit delete
When an audio source is removed, it signals its "destroy" callbacks.
One of the callbacks is OBSSourceLabel::SourceDestroyed.  When its Qt
destroy signal is fired, it causes a call to LoadAudioSources to refresh
the source list.  LoadAudioSources deletes the old layout, and so the
QWidget that the OBSSource is based on is freed while it's still in the
middle of running the signal callback, resulting in access to freed
memory.
2020-02-24 15:34:36 -08:00
Richard Stanway
45d0b8ccee UI: Reserve correct number of elements in vector 2020-02-25 00:24:05 +01:00
Richard Stanway
bc7946f8a8 UI: Reserve correct number of elements in vector 2020-02-24 21:51:02 +01:00
Clayton Groeneveld
5f937e26ff UI: Make t-bar smaller 2020-02-24 13:28:23 -06:00
Chris Angelico
2036c06b91 UI: Fix compilation warning re signed/unsigned 2020-02-24 12:31:39 +11:00
Jim
704d2c9e11
Merge pull request #2423 from cg2121/fix-launch-return
UI: Return 0 when launch cancelled or failed
2020-02-23 00:21:21 -08:00
Jim
718aaaa5bf
Merge pull request #2420 from WizardCM/profile-import
UI: Fix Import Profile in Portable Mode
2020-02-23 00:17:52 -08:00
Jim
3318776ee9
Merge pull request #2417 from WizardCM/theme-fixes
Acri theme fixes: Tables
2020-02-23 00:16:38 -08:00
Clayton Groeneveld
d6e8fbf0d1 UI: Return 0 when launch cancelled or failed 2020-02-22 19:22:43 -06:00
Richard Stanway
28cdebdc9e UI: Don't set audio encoder track index in Adv Output
The audio track should always be 0 for RTMP output. The previous code
accidentally used the audio track index to set the encoder track index.
If the chosen audio track was track 2, this enabled the experimental
multi-track RTMP output code. This then caused streams to fail as if
there were network problems, as popular RTMP services like Twitch don't
understand the multi-track RTMP stream and the connection hangs.
2020-02-23 01:04:04 +01:00
Matt Gajownik
2cbe64a79a UI: Fix Import Profile in Portable Mode
QDir.mkpath seems broken with relative paths

Also adds a check for existing profiles
2020-02-23 10:57:11 +11:00
Clayton Groeneveld
44bb7e690b obs-scripting: Update text source IDs 2020-02-21 22:54:34 -06:00
Matt Gajownik
c988f6487d UI: Allow custom browser delete button to fill the cell 2020-02-21 22:05:37 +11:00
Matt Gajownik
3f053dbd87 UI: Fix table heading visibility in Acri 2020-02-21 22:05:37 +11:00
jp9000
4f6b4df17e UI: Hide encoder if marked internal
(This commit also modifies libobs)

Hides encoders that are marked as internal.  Same general functionality
as DEPRECATED but not actually deprecated, just internal-only.
2020-02-18 21:37:41 -08:00
jp9000
cce734a0aa UI: Allow rescaling for texture-based encoders 2020-02-18 21:00:57 -08:00
Jim
4d0b3efc23
Merge pull request #2408 from cg2121/restart-app
UI: Restart program when audio/locale changed
2020-02-17 21:37:29 -08:00
Jim
262975401e
Merge pull request #2411 from cg2121/fix-locked-source
UI: Fix locked sources being transformed
2020-02-17 21:30:22 -08:00
Clayton Groeneveld
d6969d7732 UI: Fix locked sources being transformed 2020-02-17 13:22:00 -06:00
Clayton Groeneveld
b3601681b8 UI: Add ability to lock volume 2020-02-16 18:33:46 -06:00
Clayton Groeneveld
e0135823ce UI: Restart program when audio/locale changed 2020-02-16 16:12:00 -06:00
Matt Gajownik
8a0cfc5665 UI: Use OBS dock menu instead of Qt dock context menu 2020-02-16 09:37:39 -08:00
VodBox
191165c721 UI: Add advanced scene collection importer
This replaces the previous Open File dialog for importing collections
with a window for importing many collections at once, based on the remux
window, along with support for importing from OBS Classic, XSplit
Broadcaster and from Streamlabs' fork. This also translates sources
between OSes that Studio supports.
2020-02-16 17:56:06 +13:00
Jim
da326f63f5
Merge pull request #2402 from WizardCM/mouse-hotkey-resize
UI: Allow resizing docks when hotkeys are disabled
2020-02-13 23:40:42 -08:00
Richard Stanway
42ed6ffffb UI: Fix preview not being disabled when minimized 2020-02-13 23:18:40 +01:00
Matt Gajownik
a77c6aafde UI: Allow resizing docks when hotkeys are disabled
Fixes #2194
2020-02-13 12:28:48 +11:00
Theodore Dubois
c5b0da7d13 UI: Add missing function declaration
This broke the build, but due to an issue with CI this was not caught by
CI.
2020-02-09 17:25:31 -08:00
Theodore Dubois
bd3cbf23ad UI: Add Chromium-compatible NSApplication subclass
This fixes some crashes in browser panels on Mac, but it's also harmless
if browser panels aren't enabled.
2020-02-09 00:02:09 -08:00
jp9000
7c9d227f1e UI: Watch for refresh signal in source list 2020-02-07 16:44:48 -08:00
Jim
ead2cbc2e1
Merge pull request #2373 from WizardCM/multi-portable-warning
UI: Use absolute path for portable mode multi-instance check
2020-02-05 12:56:56 -08:00
Jim
6852051f84
Merge pull request #2371 from WizardCM/aap-source-icons
UI: Show source icons in Advanced Audio Properties
2020-02-05 12:55:25 -08:00
Jim
83a74b8967
Merge pull request #2375 from cg2121/tr-disabled-fix
UI: Fix transitions being disabled
2020-02-05 12:40:58 -08:00
Clayton Groeneveld
69cede2b8d UI: Fix transitions being disabled 2020-02-04 06:06:45 -06:00
Matt Gajownik
8ad61c0c67 UI: Use absolute path for portable mode multi check 2020-02-04 15:00:42 +11:00
Matt Gajownik
c58f6aea35 UI: Show source icons in Advanced Audio Properties
Co-authored-by: VodBox <dillon@vodbox.io>
2020-02-04 13:21:59 +11:00
Richard Stanway
4b9f3cb369 UI: Always prompt when updates are available
The current updater code won't prompt the user if an output is active or
if game capture is in use. These are both fairly common situations to be
in as soon as OBS starts up - for example, the NDI and VirtualCam
plugins both start outputs automatically, and a game capture source will
hook if the game is open.

It should be fairly obvious to a user that OBS will be closed when an
update is installed. Given the low frequency of game capture updates,
the risk of an update encountering in-use files is also very low, and
the standalone updater UI already shows a prompt should this happen.
2020-02-03 22:42:00 +01:00
jp9000
f077004523 UI: Fix incorrect parameter
This param is the buffer size, including null terminator
2020-02-01 22:10:57 -08:00