Repository navigation
frontend: dropped files through the platform facade (#873) - #2019
Merged
Merged
Conversation
Member
Author
|
Full run 40048228839: Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust), Flatpak and the Windows/macOS Rust cross lint all passed. Tier 2 on macOS/Windows is still running there; this PR touches no libobs code. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #873 (OBSBasic_Dropfiles)
Moves the 5
_WIN32branches infrontend/widgets/OBSBasic_Dropfiles.cpp.hppbehindfrontend/utility/platform.hpp. Each host implements the new calls inplatform-{windows,osx,x11}:IsPlatformImageExtension(suffix)jxrGetPlatformTextSourceId()text_gdiplustext_ft2_sourceSetPlatformTextFileSettings(settings, file, name)read_from_file,file, and the file name as the source namefrom_file,text_fileResolvePlatformDroppedFile(file, info, urlTarget).urlshortcut's URL; follows.lnkshortcutsjxris now checked right after the image extension list instead of inside it, so it still maps to an image source.QSettingsleavesfrontend-widgets.pch.hpp, where it was behind_WIN32.frontend-windows-platform.pch.hppgainsQFileInfo,QSettingsandQUrl.RED
ci/test_frontend_cmake_facade.py::test_dropped_files_go_through_the_facadefails on master. GREEN it passes, and./lintis clean.This changes a PCH, so BUILD.md requires a full Windows and macOS run before merge: dispatched
ci.ymlrun https://github.com/obs-rust/obs-studio/actions/runs/40048228839. I'll mark the PR ready when that run is green.